Welcome visitor
* Login
* Register
It is currently March 25th, 2019, 3:14 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  3 decimals format
PostPosted: August 7th, 2009, 5:23 am 

Posts: 27
im using javascript to add some fields, the thing is that as the user has the ability to enter the numbers, results may vary.
Anyway, do you know how to make sure that all results will have 3 decimals? like xx.xxx


Top
 Profile  
 
  Re: 3 decimals format
PostPosted: August 7th, 2009, 5:30 am 

Posts: 19
yourNumber=34.59328474
yourNumber.toFixed(3)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron