Click to See Complete Forum and Search --> : geting correct decimal points?
pnj
Oct 13th, 2000, 06:51 PM
hello,
how can I stop a number from looking like this:100.00103032?
I need to format it like $100.00
thanks
kedaman
Oct 13th, 2000, 07:16 PM
msgbox format (100.00103032,"$0.00")
Use the format function.
monte96
Oct 13th, 2000, 07:56 PM
You can't use Format in VBScript.
MyNumber = 100.00103032
MyCurrency = FormatCurrency(MyNumber, 2)
'MyCurrency contains $100.00
kedaman
Oct 13th, 2000, 08:03 PM
ah, my bad, didn't know that :(
pnj
Oct 13th, 2000, 08:13 PM
thanks,
right after I posted I relized I didn't mention I was using VBscript.
thanks Monte96
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.