I am having a problem with functions cutting off decimal points. for ex:
float GetFloat(void)
{
float f = 1.23456;
Serial.println(f,6); // I get 1.23456
return f;
}
void setup(void)
{
Serial.begin(9600);
float f = GetFloat();
Serial.println(f,6); // I get 1.23
}
void loop(void)
{
delay(1000);
}
How to I get it to return the full float from the function?
*edit: replaced pseudo code for real code