Display floating value using Labeled Value widget

Blynk local server: Raspberry Pi2, Raspbian Strech
Blynk server s/w: 0.32.4, Java8
Blynk library: 0.5.3
Blynk application: 2.21.0
Installed on iPhone 6s iOS ver. 11.2.5
Hardware: Wemos d1 mini

When I push a string value to a Labeled Value widget:
Blynk.virtualWrite(V12, “3.5”);
The value on the screen is displayed correctly 3.5

But when I push a floating value to a Labeled Value widget:
Blynk.virtualWrite(V12, 3.5);
The display shows:

The same bad display shows when using a variable:
float x = 3.5;
Blynk.virtualWrite(V12, x);

The widget uses default settings and PUSH refresh method.

Have you seen the FormatString in the Example/Blynk/More/ section?

You don’t say which version of the ESP core you’re using. There’s a floating point issue that is fixed in the latest version, looks like that’s the likely culprit to me.


I had this hardware working for over a year with older version of Blynk s/w. After I did a massive update of Raspbian and all 3 Blynk applications, it stopped to accept floating point values.

If I find it correctly, the ESP version is 2.3.0

2.3.0 is not the latest. use 2.4.0+

Welcome to the world of change… not all good, but change nevertheless :stuck_out_tongue: Don’t forget to use the forums search function, this recent (actually resurrected) floating point issue, and the solution, has been discussed a few times.

Updated the ESP version to 2.4.1 and everything is back to normal, i.e. working OK.