|
-
Feb 20th, 2003, 02:41 PM
#1
Thread Starter
Fanatic Member
Format Number
i want to change the format of the number in a textbox
to have a thousand separator.
i.e. the number 12345.78 should change to 12,345.78 .
Problem is , by using format(num,"#,###")
12345.78 becomes 12346 . I want to have the decimal part as it is.
Thanks
Last edited by vishalmarya; Feb 20th, 2003 at 02:52 PM.
-
Feb 20th, 2003, 03:10 PM
#2
Frenzied Member
-
Feb 20th, 2003, 04:43 PM
#3
Or...
Text1.Text = FormatNumber(Text1.Text, 2)
-
Feb 20th, 2003, 09:38 PM
#4
Member
format
use this format
format$(text1,"###,###,##0.00")
-
Feb 21st, 2003, 12:11 AM
#5
Re: format
Originally posted by kvreddy
use this format
format$(text1,"###,###,##0.00")
That's exactly what FormatNumber does (and you don't have to worry about truncation).
-
Feb 21st, 2003, 03:01 AM
#6
Thread Starter
Fanatic Member
using Format(num, "#,###.##") gives a decimal point .
i.e. , if the number is 10000 result is 10,000. ( see decimal at the end) .
i have solved the problem by checking if the number contains decimal . if it does I use : "#,###" , and if doesn't i use the above one.
No General format string i guess ?
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
|