Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 30th, 2004, 01:15 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
Default Number of Digits

How do I format a number to display with 2 digits after the decimal?

- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.
 
Old November 30th, 2004, 09:17 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

a quick google found :

http://www.mredkj.com/javascript/nfbasic2.html
 
Old December 1st, 2004, 08:36 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii Colonel Angus
This like help you to sort out your problem

http://www.4guysfromrolla.com/webtech/111298-1.shtml
function FormatNumber(num, decimalNum, bolLeadingZero, bolParens)


Cheers :)

vinod
 
Old December 1st, 2004, 09:12 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you both. :)

- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Mulitplication of two digits in Datagrid u_roc100@rediffmail.com Visual Studio 2005 0 June 10th, 2008 03:35 PM
Restricting the # of digits after a decimal in a K stevenyoo321 VB How-To 1 April 18th, 2007 07:52 AM
Testing a string for digits bonekrusher XSLT 2 March 18th, 2007 02:48 PM
TAPI: Detecting Dialed Digits [VC++] goyal_saurabh Visual C++ 4 September 14th, 2006 03:00 AM
Change number of significant digits displayed gurbani XSLT 1 June 25th, 2004 11:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.