We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I have float values let's say range (-100.0, 300.0). I cast to int to do a first approximation but then what if I want to say that every value ranging from 50 to 55 must be equal to 50 and from 55 to 60 equal to 60? As I have to do this for all the range (400 int values) is there an easy way to do this other than check for every number if is is the first 5 digits or the second 5?
some examples 44 = 40 256 = 257 122 = 120 -43 = -40