Closed bbkr closed 11 years ago
http://perlcabal.org/syn/S32/Numeric.html#Real
Documentation for round() function says that
Functions that round to a particular precision may easily be created by priming: constant &roundcents ::= &round.assuming(:scale(1/100));
But scale is no longer a named param
scale
perl6 -e 'Real.^find_method("round").signature.say' :(Real : $scale = { ... }, Mu *%_)
Example removed:
sub roundcents($x) { round($x, 1/100) }
works just as well as the example was supposed to and is shorter and clearer.
http://perlcabal.org/syn/S32/Numeric.html#Real
Documentation for round() function says that
But
scale
is no longer a named param