imapanda / arduino-nano

Having some fun with Arduino nano
MIT License
0 stars 0 forks source link

double to int.... #2

Closed pierrebressy closed 2 years ago

pierrebressy commented 2 years ago
double g=12.0;

int gint=0;

gint=(int)(g+0.5);
imapanda commented 2 years ago

Used this solution