[jQuery] Rounding numbers

2009-11-16 Thread cfred
I am having trouble rounding numbers in the code below. I would like "insulBlocks" to round up to a whole number and "8Blocks", "10Blocks" & "12Blocks" to round to 2 decimal places. I've tried several things but being a newbie I'm guessing I'm just putting things in the wrong place. Thanks for re

[jQuery] Rounding numbers

2008-11-19 Thread less than zero
Hi, Is there any way to round the value of a variable to the next decimal place? For the project I'm working on I need to round up the figure regardless of whether it is nearer to the lower value. e.g. 3. would become 4. Thanks for your help, R -- View this message in context: http://www