Ok, so I have an 8 bit AD input 0-255, that I wish to rescale to a PWM output of say 0-150 (don't ask!), now in the real world I'd just divide 150 by 255, (0.0392156862745098) & then apply that to all my incoming input values....but that'd obviously involve floating point.
What's the best way to approach such rescaling in Picbasic, cos I've thoroughly checked my head, and there's nothing listed in there?
Bookmarks