earth2d
asked on
FormatNumber using Single precision
I need help with the following
How do I Format a number in the answer box(txtAnswer.Text) with 3 decimal places, No leading zeros and no commas. I am using this for a calculator and I want to be able to divide 33 into 3 and get 3 decimal places with out zeros. It should look like this .090
How do I Format a number in the answer box(txtAnswer.Text) with 3 decimal places, No leading zeros and no commas. I am using this for a calculator and I want to be able to divide 33 into 3 and get 3 decimal places with out zeros. It should look like this .090
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That did work well with an If statement and I used txtAnswer.Text = Format(msngAnswer, "0.") for the other opt.Values. That is what I was looking for. good Deal!
Dee
Dee
ASKER