Link to home
Start Free TrialLog in
Avatar of earth2d
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

ASKER CERTIFIED SOLUTION
Avatar of repstein
repstein

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of earth2d
earth2d

ASKER

Thank You
Avatar of earth2d

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