Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Comparing numbers

by Chief of Chaos (Friar)
on Nov 29, 2002 at 11:28 UTC ( [id://216492]=note: print w/replies, xml ) Need Help??


in reply to Re: Comparing numbers
in thread Comparing numbers

ok, -w and use warnings don't make sense.
Yes, you are correct with the equal - output and the numbers.
change
my @file = ('0.13','0.14','0.14'); my $diff = 0;
to
my @file = (0.14,0.14); my $diff = -1;
and here you got your output
Difference between 0.14 and 0.14 is 0

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://216492]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-18 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found