how to display decimal value to processing from serial input?
in
Core Library Questions
•
1 year ago
hello guys...
i've got a problem with a processing...
I make some program use processing, which one is temperature sensor program with arduino and DHT11...
i'm finish with arduino and sensor which produce decimal value (float)...
but i can't display that value on processing, processing only display an interger value...
please I wish there's somebody can help me with this problem...
example:
if serial write value 32.90
on processing only display 32.00
the code I use:
float tempC, tempF;
void draw
text(nfc(tempC, 1), 220+xx, 60);
text(nfc(tempF, 1), 220+xx, 100);
thx before for respons... :)
i've got a problem with a processing...
I make some program use processing, which one is temperature sensor program with arduino and DHT11...
i'm finish with arduino and sensor which produce decimal value (float)...
but i can't display that value on processing, processing only display an interger value...
please I wish there's somebody can help me with this problem...
example:
if serial write value 32.90
on processing only display 32.00
the code I use:
float tempC, tempF;
void draw
text(nfc(tempC, 1), 220+xx, 60);
text(nfc(tempF, 1), 220+xx, 100);
thx before for respons... :)
1