Created
November 27, 2017 03:25
-
-
Save esmarr58/7d79921c8dc0aa6f3cd00f1f350e799f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double numeroFlotante = 6.32; | |
double numeroRedondeado = 0.0; | |
void setup() { | |
Serial.begin(9600); | |
Serial.print("Numero flotante: "); | |
Serial.println(numeroFlotante,4); | |
Serial.print("Numero flotante con redondeo: "); | |
numeroRedondeado = round(numeroFlotante); | |
Serial.println(numeroRedondeado); | |
} | |
void loop() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment