Help for this page

Select Code to Download


  1. or download this
    my $x = int($str+0);
    
  2. or download this
    my @test = qw(in inf info information INF INFO Na Nan Nanny NAN NANNY 
    +nan04);
    foreach my $x (@test) {
      my $y = int($x);
      printf "%11s -> %s\n", $x, $y;
    }
    
  3. or download this
             in -> 0
            inf -> Inf
    ...
            NAN -> NaN
          NANNY -> NaN
          nan04 -> NaN