Help for this page

Select Code to Download


  1. or download this
    > perl -e 'print sprintf("%.0f%", 1/30*100)'
    3%
    
  2. or download this
    use Test::More tests => 1;
    use Test::Number::Delta within => .01;
    my $percent = 1/30;
    delta_ok( $percent, 0.03, 'values within 1%');