You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.
If you end up with additional information to share, feel free to comment in the other thread.
The ref page for float (Reference>Language>Variables>Data types>Float) mentions:
or use the round() function:
float x = 2.9;
int y = round(x)
But round() is not hyperlinked and is NOT listed in the top Language Reference list: www.arduino.cc/reference/en/
So users can't find out how round() works: round(2.01)=???, round(2.49)=???, round(2.5)=???, round(2.51)=???
The text was updated successfully, but these errors were encountered: