We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi folk, I have
u16 wTemp = 0; fsingle fTemp = 17.5123; wTemp = (u16)fTemp;
No, integer casts on floats truncate so 17 is correct. Look up floor() and ceil() in your manual, they will help do what you want. - Mark