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

Round function !!!!

Status
Not open for further replies.

mackiew

Programmer
Sep 15, 2000
18
0
0
UY
Hi
Exists or how I do an function that :
my $number = 23.23412347
round($number , 2 ) = 23.23 ???

Thanks !
 
Code:
sprintf("%1.2f", $number);
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top