Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Use Sprintf() function.
#define DECIMAL_PLACES (100) // 2 digits after decimal
void displayFloat(float value) // Assume value = 123.456
{
unsigned long a = value; // a = 123
value = (value - (float)a) * (DECIMAL_PLACES); // value = 45.6
unsigned long b = value; // b = 45
display(a);
display('.');
display(b);
}