Re: rounding off numbers
JRS: In article <brfn22$oqs$1@s parta.btinterne t.com>, seen in
news:comp.lang. javascript, bagbourne <noway@noway.co m> posted at Sat, 13
Dec 2003 18:50:43 :-
[color=blue][color=green]
>> In article <LxGCb.99$sW5.5 0@newsread2.new s.atl.earthlink .net>, Allen
>> Thompson <genericjoe@min dspring.com> wrote:
>>
>>[color=darkred]
>>>Is there a script that will round off a number to a certain number of
>>>decimal places? -Allen Thompson[/color][/color][/color]
[color=blue]
>or use the toFixed() method of the Number object:
>
>http://devedge.netscape.com/library/...ference/number
>.html#119313 7[/color]
Method toFixed() should not be used on the Internet. Implementations
are buggy, and the method is not available on all browsers currently in
use.
It is wise to understand the newsgroup FAQ before answering here.
--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> Jsc maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/Jsc/&c, FAQ topics, links.
JRS: In article <brfn22$oqs$1@s parta.btinterne t.com>, seen in
news:comp.lang. javascript, bagbourne <noway@noway.co m> posted at Sat, 13
Dec 2003 18:50:43 :-
[color=blue][color=green]
>> In article <LxGCb.99$sW5.5 0@newsread2.new s.atl.earthlink .net>, Allen
>> Thompson <genericjoe@min dspring.com> wrote:
>>
>>[color=darkred]
>>>Is there a script that will round off a number to a certain number of
>>>decimal places? -Allen Thompson[/color][/color][/color]
[color=blue]
>or use the toFixed() method of the Number object:
>
>http://devedge.netscape.com/library/...ference/number
>.html#119313 7[/color]
Method toFixed() should not be used on the Internet. Implementations
are buggy, and the method is not available on all browsers currently in
use.
It is wise to understand the newsgroup FAQ before answering here.
--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> Jsc maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/Jsc/&c, FAQ topics, links.
Comment