Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int xpto;
- float meufloat = 1.29;
- void setup ()
- {
- Serial.begin(9600);
- }
- void loop ()
- {
- xpto = ((int)(meufloat*100)%100);
- Serial.println(xpto);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement