Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: sorting exponential values in perl

by nagalenoj (Friar)
on Oct 30, 2009 at 13:55 UTC ( #804166=note: print w/ replies, xml ) Need Help??

in reply to sorting exponential values in perl

sort function is working values. What's your problem and what have you tried?

use strict; use warnings; use Data::Dumper; my @arr = (3.00E-59, 8.00E-25, 8.00E-47, 0, 2.3, 6.00E-04, 5.00E-19, 3 +.00E-10, 1.00E-38, 4.00E-71, 6.00E-70, 2.00E-09, 2.00E-42, 9.00E-14, +7.00E-12, 0 ); print Dumper sort @arr;

Comment on Re: sorting exponential values in perl
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2015-11-30 20:52 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (783 votes), past polls