Shop OBEX P1 Docs P2 Docs Learn Events
Rounding to nearest multiple of 5 — Parallax Forums

Rounding to nearest multiple of 5

CheetahCheetah Posts: 26
edited 2007-05-28 02:24 in BASIC Stamp
I'm working on an RF generator and I need to display the intensity value
on the screen rounded to the nearest number divisible by 5. For example
if I read 43 from the A/D I have to display 45. 32 would be displayed as 30.
Does anyone know a quick way to do this?
Thanks.

Comments

Sign In or Register to comment.