I'm at a total loss on this one. I'm trying to find a command that will round a number, but I can't find it anywhere in RRExt or base RR skin commands.....

Here's the situation. I'm using RRFusion to read some sensors in my car, one being the Throttle Position sensor. I'm converting the RAW (0-1023) data to a voltage using .00488, which is the published voltage step for the fusion brain hardware, then taking that voltage, and turning it into a percentage. The closed throttle voltage is .625v and wide open throttle is 3.850v. So to convert the sensor voltage to a %, I'm taking the voltage, minus the minimum (.625), divided by the range (3.225), times 100 (to give the whole number percentage). The problem lies in the math though. With each calculation, there's more and more decimal places added on, and I need to remove all of them so in the end, i just have 0-100. This is why I need something that will round to the nearest whole number.

Does anyone know if such a command exists, and if it doesn't, could you please add it anthony? lol

Thanks everyone...Matt

Here's the situation. I'm using RRFusion to read some sensors in my car, one being the Throttle Position sensor. I'm converting the RAW (0-1023) data to a voltage using .00488, which is the published voltage step for the fusion brain hardware, then taking that voltage, and turning it into a percentage. The closed throttle voltage is .625v and wide open throttle is 3.850v. So to convert the sensor voltage to a %, I'm taking the voltage, minus the minimum (.625), divided by the range (3.225), times 100 (to give the whole number percentage). The problem lies in the math though. With each calculation, there's more and more decimal places added on, and I need to remove all of them so in the end, i just have 0-100. This is why I need something that will round to the nearest whole number.

Does anyone know if such a command exists, and if it doesn't, could you please add it anthony? lol

Thanks everyone...Matt

## Comment