We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45bac9b commit a9dea39Copy full SHA for a9dea39
src/core/Int.pm
@@ -69,7 +69,6 @@ my class Int does Real { # declared in BOOTSTRAP
69
method ceiling(Int:D:) { self }
70
proto method round(|) {*}
71
multi method round(Int:D:) { self }
72
- multi method round(Int:D: 1) { self }
73
multi method round(Int:D: $scale as Real) { (self / $scale + 1/2).floor * $scale }
74
75
method lsb(Int:D:) {
src/core/Real.pm
@@ -43,9 +43,6 @@ my role Real does Numeric {
43
multi method round(Real:D:) {
44
(self + 1/2).floor; # Rat NYI here, so no .5
45
}
46
- multi method round(Real:D: 1) {
47
- (self + 1/2).floor;
48
- }
49
multi method round(Real:D: $scale as Real) {
50
(self / $scale + 1/2).floor * $scale;
51
0 commit comments