I am sending values to Serial.print in the format:
Serial.print(Integer result);
Serial.println(fractional result);
So the number 40.43567 would be printed as:
Serial.print("40");
Serial.print(".43567");
but the numbers are represented by variables. I am doing this to get more precision out of the float data type, peeling off the integer value and then calculating the fractional separately before combining them in my output for viewing. The problem is that printing floats that are a fractional amount seems to be placing a zero in front of the decimal so:
.43567 gets printed as
0.43567
which means my output based on the two calls to Serial.print would look like:
400.43567
Is there a way to make it not print that leading zero on the fractional value?