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: General Discussions: General Questions: Perl float point equations.: Edit Log



TIGA
New User

Jun 23, 2009, 6:39 AM


Views: 3505
Perl float point equations.

Hi Guys.

I cannot seem to get the following equation work in perl.

it says cnanot divide by 0, i know that perl converts decimal numbers to a int.

but whats the work around to this?.


Code
my $x = 60/(10/4



(This post was edited by TIGA on Jun 23, 2009, 6:43 AM)


Edit Log:
Post edited by TIGA (New User) on Jun 23, 2009, 6:40 AM
Post edited by TIGA (New User) on Jun 23, 2009, 6:43 AM


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

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