Float number output
in c syntax formating float number print 3 digits after decimal
the arduino doesn't seem understand syntax.
please help
code: [select]
printf("%.3f", variable);the arduino doesn't seem understand syntax.
please help
the arduino prints through serial object, uses serial/uart of microchip.
you can see output in serial monitor.
you can see output in serial monitor.
code: [select]
void setup(){
serial.begin(9600);
float x = 3.1415;
serial.println(x);
}
void loop(){/*no loop*/}
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Float number output
arduino
Comments
Post a Comment