T
Tony Girgenti
Hello.
Trying to develop VS2005, SP1 windows form VB program.
When i try a statement like below and the data is "24.95", without the
quotes of course, regPriceString equals "000000000025+" .
regPriceString = String.Format("{0:000000000000+}",
merchandiseDataRow.Item("RegPrice"))
Why does it round the number? What does formatting have to do with math?
I would like regPriceString to wind up with "000002495000+" I don't want
the decimal point in the result.
Any help would be gratefully appreciated.
Thanks,
Tony
Trying to develop VS2005, SP1 windows form VB program.
When i try a statement like below and the data is "24.95", without the
quotes of course, regPriceString equals "000000000025+" .
regPriceString = String.Format("{0:000000000000+}",
merchandiseDataRow.Item("RegPrice"))
Why does it round the number? What does formatting have to do with math?
I would like regPriceString to wind up with "000002495000+" I don't want
the decimal point in the result.
Any help would be gratefully appreciated.
Thanks,
Tony