CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Rounding number problemm...

 



DippinPete
Deleted

Feb 13, 2001, 7:38 AM

Post #1 of 3 (295 views)
Rounding number problemm... Can't Post

I need to be able to turn:
2.455
to
2.46
right now it is just dropping the last 5 and leaving it 2.45. This is not good.

Any ideas?

Pete



Jasmine
Administrator / Moderator

Feb 13, 2001, 8:36 AM

Post #2 of 3 (293 views)
Re: Rounding number problemm... [In reply to] Can't Post

From the FAQ: Does perl have a round function? ...



SirAnvil
Deleted

Feb 14, 2001, 9:00 AM

Post #3 of 3 (275 views)
Re: Rounding number problemm... [In reply to] Can't Post

Personally I find the USE POSIX in the above faq very usefull.

SirAnvil
www.christiangamers.org

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives