I am sending values to Serial.print in the format:
So the number 40.43567 would be printed as:
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
which means my output based on the two calls to Serial.print would look like:
Is there a way to make it not print that leading zero on the fractional value?