Go Down

Topic: Strange long conversion error in ftoa (Read 207 times) previous topic - next topic

Coding Badly

#15
Jan 25, 2017, 09:09 pm Last Edit: Jan 25, 2017, 09:10 pm by Coding Badly
Would it not be sufficient to write ... and not add something to fraction at all?
No.  There are two points where rounding / truncating are an issue.

The bottom line is that there is a reason dtostrf is slower (if it actually is).  Sometimes correct takes time.


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy