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 Decimals

 



ProxyProdigy
Deleted

Mar 16, 2001, 9:04 AM

Post #1 of 2 (309 views)
Rounding Decimals Can't Post

Can someone tell me how to make a cgi round a decimal point. I have a program with some formulas in it that need to have the result displayed as currency with the leading zeros or what ever is after the decimal, but only two characters. (eg $12.59 instead of $12.59300235).



Jasmine
Administrator / Moderator

Mar 16, 2001, 12:03 PM

Post #2 of 2 (306 views)
Re: Rounding Decimals [In reply to] Can't Post

Please refer to this FAQ Does perl have a round function? What about ceil() and floor()? Trig functions?


 
 


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

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