Skip to main content
Arduino

Return to Answer

deleted 9 characters in body
Source Link
user31481
user31481

Your sConversion takesreturns an int as argument. You need to declare it as unsigned long.

This is what you are lookin for:

int conv(unsigned long conv(int x) {
 return x /* 600000;600000L;
}

Your sConversion takes an int as argument. You need to declare it as unsigned long.

This is what you are lookin for:

int conv(unsigned long x) {
 return x / 600000;
}

Your sConversion returns an int as argument. You need to declare it as unsigned long.

This is what you are lookin for:

unsigned long conv(int x) {
 return x * 600000L;
}
Post Undeleted by Community Bot
Post Deleted by Community Bot
Source Link
user31481
user31481

Your sConversion takes an int as argument. You need to declare it as unsigned long.

This is what you are lookin for:

int conv(unsigned long x) {
 return x / 600000;
}

AltStyle によって変換されたページ (->オリジナル) /