Help for this page

Select Code to Download


  1. or download this
        approx(dsin(30))
        approx(dcos(30))
    
  2. or download this
        approx($num, 7);  # will return 0.5 for 0.500000001 but 0.50000001
    + if
                          # that is passed as it only has 6 zeros.
    
  3. or download this
    sub approx {
        my ( $num, $dp ) = @_;
    ...
            return $num;
        }
    }