[jQuery] Re: Rounding numbers

2009-11-18 Thread cfred
cks").html(Match.ceil(parseInt($("#insulBlocks").html()) * .25 > * 100) / 100); > $("#10Blocks").html(Match.ceil(parseInt($("#insulBlocks").html()) * . > 35 * 100) / 100); > $("#12Blocks").html(Match.ceil(parseInt($("#insulBlocks").html())

[jQuery] Re: Rounding numbers

2009-11-16 Thread cfred
n/browse_thread/thread/e819cef... > > On 16 Lis, 05:02, cfred wrote: > > > > > I am having trouble rounding numbers in the code below. I would like > > "insulBlocks" to round up to a whole number and "8Blocks", "10Blocks" > > & &q

[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