|
-
Aug 25th, 2003, 04:11 AM
#1
Thread Starter
Registered User
format a Double variable [Resolved]
When I view a Double variable, it shows 0.6, 1.2, 1
How do I format it to 00.60, 01.20, 01.11?
Last edited by albertlse; Aug 25th, 2003 at 07:44 PM.
-
Aug 25th, 2003, 04:48 AM
#2
Lively Member
Hmmm...
Hi,
Format(myValue, "#,###.00")
-
Aug 25th, 2003, 08:57 AM
#3
I wonder how many charact
Well, if you want to keep the true value internally, and only format it for display to the user....
then...
MyDouble.ToString("00.00")
instead of Format function, which I believe is part of the VisualBasic namespace...
-
Aug 25th, 2003, 07:37 PM
#4
Thread Starter
Registered User
thanx. it's working fine now
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|