Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get two decimal points

Status
Not open for further replies.

associates

IS-IT--Management
Aug 2, 2005
59
AU
Hi,

Sorry for asking this very trivial question.

How do i make sure that i can get two decimal points for a number?

For example: I have a number of 190.834756 and like to replace it by 190.99

I can get 190.99 in text string but if i convert it into number by using mynum = val(mystr) where mystr is type of string.

And when i print out mynum on the screen, it becomes 191. it rounds it up automatically.

Please help me on this.

Thank you
 
associates
Check the properties for the control in question. Under Format, use either a Fixed or a Standard number. Then in decimal places, put 2.

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top