Hi guys!
I need to use an Arduino to do some simple arithmetics, but it's not that simple
As an example, if I want to divide an integer with an exponent, the Arduino does not seem
to like it: 245/10^-3
I take it that this is due to one number being an integer and the other being a float? The division should
return 245000 (2.45*10^5), but how do I do this in C++/Arduino? The numerator will always be an integer,
and the denominator will always be a float in scientific notation.
Thanks for reading!
Nicholas
I need to use an Arduino to do some simple arithmetics, but it's not that simple
As an example, if I want to divide an integer with an exponent, the Arduino does not seem
to like it: 245/10^-3
I take it that this is due to one number being an integer and the other being a float? The division should
return 245000 (2.45*10^5), but how do I do this in C++/Arduino? The numerator will always be an integer,
and the denominator will always be a float in scientific notation.
Thanks for reading!
Nicholas