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

Rounding down strings 1

Status
Not open for further replies.

solex

Programmer
Joined
Feb 28, 2003
Messages
91
Location
GB
hi,

i want to round down a string, but round() function will also round up. Any idears every body?

thanx in advance

solex
 
the floor() function will round down
eg:
echo floor(9.999); = 9

____________________________________________________
The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-2924

onpnt2.gif
 
just a side note as you stated "string"
if indeed it is a string you will need to convert datatypes more then likely

____________________________________________________
The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-2924

onpnt2.gif
 
thanx thats it.

solex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top