Serial.print


hy

i think has asked couldn't find post..

so got sketch running in wich have print float value on serial port.

for example
float test = 231,02312

serial.print((long)((float)test ));

i 231 that's how rest? '0' problem won't store in int value of course. how can print it?

thx
andy

as of 0018:
code: [select]
serial.print(test, ndp);
will give "ndp" places of decimals.


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Serial.print


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums