- or download this
approx(dsin(30))
approx(dcos(30))
- 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.
- or download this
sub approx {
my ( $num, $dp ) = @_;
...
return $num;
}
}