Go Down

Topic: Arduino calculating math incorrectly? (Read 734 times) previous topic - next topic

marco_c

#5
Jul 24, 2012, 02:15 am Last Edit: Jul 24, 2012, 03:07 am by marco_c Reason: 1
Quote
for the Arduino


That is not the case for other implementations of C/C++. The bigger the precision the more it takes to calculate, especially as there is no floating point hardware support. How many decimal places to you need?
Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

nate890

"That is not the case for other implementations of C/C++."
I know. But, since arduino's float counts as double and double counts as float, why have both?

Coding Badly


Because the C++ standard requires both types.

Arrch


"That is not the case for other implementations of C/C++."
I know. But, since arduino's float counts as double and double counts as float, why have both?

Portability.

Go Up