I get "Value = %.1f"
Bug? Fix?
Explore... Chat... Share...
float value = 12341.117840547;
Serial.printf ("Value = %4.1f\n", value);
Serial.printf ("Value = %4.1f\n", 9.0453);
Serial.printf ("Value = %4.1f\n", 9.0);
Serial.printf ("Value = %5.1f\n", 9.0);
Serial.printf ("Value = %6.1f\n", 9.0);
Serial.printf ("Value = %6.1f\n", 1234.567); Value = 12341.1
Value = 9.0
Value = 9.0
Value = 9.0
Value = 9.0
Value = 1234.6#include <stdarg.h>
#include <stdio.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
float value = 12341.117840547;
Serial.printf ("Value = %4.1f\n", value);
Serial.printf ("Value = %4.1f\n", 9.0453);
Serial.printf ("Value = %4.1f\n", 9.0);
Serial.printf ("Value = %5.1f\n", 9.0);
Serial.printf ("Value = %6.1f\n", 9.0);
Serial.printf ("Value = %6.1f\n", 1234.567);
Serial.printf ("Value = %d\n", 1234);
Serial.printf ("Value = %07d\n", 1234);
}
void loop() {
// put your main code here, to run repeatedly:
delay (9999999);
}
Value = 12341.1
Value = 9.0
Value = 9.0
Value = 9.0
Value = 9.0
Value = 1234.6
Value = 1234
Value = 0001234It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]