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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decimal point being dropped when rounding to a whole number 1

Status
Not open for further replies.

pinoak

MIS
Mar 4, 2001
1
US
Example: The number 18.0 will lose the decimal point when the value is returned. How do I stop this?
 
Not sure exactly what you mean, but if you use the
Code:
round
function, then you can get the .0 to show if that's what you want. You could do this:
Code:
round(18.0, 1)

the 1 being the number of decimal places you want to show in the output...

Hope it Helps!:)
Paul Prewett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top