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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Rounding Decimals



Mar 16, 2001, 9:04 AM

Post #1 of 2 (409 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).

Administrator / Moderator

Mar 16, 2001, 12:03 PM

Post #2 of 2 (406 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