Great, thanks for the help.


Hector Virgen wrote:
> 
> Math.ceil() should do the trick:
> Math.ceil(3.3333); // 4
> Math.ceil(3.0); // 3
> 
> -Hector
> 
> 
> On Wed, Nov 19, 2008 at 8:22 AM, Pierre Bellan <[EMAIL PROTECTED]> wrote:
> 
>> Hi,
>>
>> In javascript, you have the Math object. This is the perfect solution for
>> your problem
>>
>> Bye
>> Pierre
>>
>> Lily Tomlin  - "The trouble with the rat race is that even if you win,
>> you're still a rat."
>>
>> 2008/11/19 less than zero <[EMAIL PROTECTED]>
>>
>>
>>>
>>> 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.3333 would become 4.
>>>
>>> Thanks for your help,
>>>
>>> R
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Rounding-numbers-tp20583299s27240p20583299.html
>>> Sent from the jQuery General Discussion mailing list archive at
>>> Nabble.com.
>>>
>>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Rounding-numbers-tp20583299s27240p20584374.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to