I have the following javascript code.
if( frequencyValue <= 30)
leftVal = 1;
else if (frequencyValue > 270)
leftVal= 10;
else
leftVal = parseInt(frequencyValue/30);
Currently if given the value 55 (for example) it will return 1 since 1< 55/30 < 2. I was wondering if there was a way to round up to 2 if the decimal place being dropped was greater than .5.
thanks in advance