Casting Float to Int - Arduino Forum - Index
Rounded: 89.35 Decimal (int)0.35: 35 Decimal (float): 35.00 Decimal (int): 34 +89.34 Rounded: -3.32 Decimal (int)0.35: 35 Decimal (float): 32.00 Decimal (int): 32-3.32 It's odd because once a float value is set and when casted it reverts for some reason (...