I'm currently working on a solution to my problem posted about printing floats.
So the problem I'm having is with this:
long temp3=(-10.282 - -10)*1000000;
What I am trying to do is store the values in a float/decimal number with only the numbers after the decimal point. So for this example of --10.282 I would expect back -282.
Doing the calculation (-10.282 - -10)1000000 on a calculator would equal to *-282000**
Whilst Arduino calculates this as -19855
What's going on here. P.S I'm printing these values via Serial.print. Thanks in advance.