Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: fastest way to compare numerical strings?

by jds17 (Pilgrim)
on Jun 30, 2008 at 19:14 UTC ( [id://694815]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #maximum distance we are looking for
    $delta = 0.01;
    ...
    
    print "Not further than $delta apart are the following pairs:\n";
    print "$_\n" for (keys %near);
    
  2. or download this
    Not further than 0.01 apart are the following pairs:
    -0.002, 0.005
    ...
    1.011, 1.02
    1.03, 1.04
    1.01, 1.011
    
  3. or download this
    use strict;
    use warnings;
    ...
    
    timethis ( 10 => 
      sub { ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-23 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found