Skip to main content
Question Protected by VE7JRO

I copyCopied from the http://arduino.cc/en/Reference/MillisArduino reference - millis()

Tip: Note that the parameter for millis is an unsigned long, errors may be generated if a programmer tries to do math with other datatypes such as ints.

Tip: Note that the parameter for millis is an unsigned long, errors may be generated if a programmer tries to do math with other datatypes such as ints.

What kind of math? What kind of other type of processing is excluded while working with millis?

Could someone clarify this statement and/or give some example?

I copy from http://arduino.cc/en/Reference/Millis

Tip: Note that the parameter for millis is an unsigned long, errors may be generated if a programmer tries to do math with other datatypes such as ints.

What kind of math? What kind of other type of processing is excluded while working with millis?

Could someone clarify this statement and/or give some example?

Copied from the Arduino reference - millis()

Tip: Note that the parameter for millis is an unsigned long, errors may be generated if a programmer tries to do math with other datatypes such as ints.

What kind of math? What kind of other type of processing is excluded while working with millis?

Could someone clarify this statement and/or give some example?

Tweeted twitter.com/#!/StackArduino/status/573731515395358720
Post Migrated Here from electronics.stackexchange.com (revisions)
Source Link
user3060854
  • 600
  • 4
  • 9
  • 20

arduino - millis()

I copy from http://arduino.cc/en/Reference/Millis

Tip: Note that the parameter for millis is an unsigned long, errors may be generated if a programmer tries to do math with other datatypes such as ints.

What kind of math? What kind of other type of processing is excluded while working with millis?

Could someone clarify this statement and/or give some example?