Skip to main content
Arduino

Return to Answer

replaced http://arduino.stackexchange.com/ with https://arduino.stackexchange.com/
Source Link

You don't need "to compensate for a roll over condition".

See my answer: http://arduino.stackexchange.com/a/33577/10794 https://arduino.stackexchange.com/a/33577/10794


in an Arduino compiler?

The "Arduino" compiler is a C++ compiler. That is the starting point for most questions. If you Google for:

maximum unsigned long in c++

You will find the first link leads to:

http://www.cplusplus.com/reference/climits/

In that it says:

ULONG_MAX Maximum value for an object of type unsigned long int

You don't need "to compensate for a roll over condition".

See my answer: http://arduino.stackexchange.com/a/33577/10794


in an Arduino compiler?

The "Arduino" compiler is a C++ compiler. That is the starting point for most questions. If you Google for:

maximum unsigned long in c++

You will find the first link leads to:

http://www.cplusplus.com/reference/climits/

In that it says:

ULONG_MAX Maximum value for an object of type unsigned long int

You don't need "to compensate for a roll over condition".

See my answer: https://arduino.stackexchange.com/a/33577/10794


in an Arduino compiler?

The "Arduino" compiler is a C++ compiler. That is the starting point for most questions. If you Google for:

maximum unsigned long in c++

You will find the first link leads to:

http://www.cplusplus.com/reference/climits/

In that it says:

ULONG_MAX Maximum value for an object of type unsigned long int
Source Link
Nick Gammon
  • 38.9k
  • 13
  • 69
  • 125

You don't need "to compensate for a roll over condition".

See my answer: http://arduino.stackexchange.com/a/33577/10794


in an Arduino compiler?

The "Arduino" compiler is a C++ compiler. That is the starting point for most questions. If you Google for:

maximum unsigned long in c++

You will find the first link leads to:

http://www.cplusplus.com/reference/climits/

In that it says:

ULONG_MAX Maximum value for an object of type unsigned long int
lang-cpp

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