Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
return integers from rounders
  • Loading branch information
moritz committed Dec 8, 2011
1 parent 9fd40d8 commit 2453985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Num.pm
Expand Up @@ -96,12 +96,12 @@ my class Num {
method ceiling(Num:D: ) {
nqp::isnanorinf(nqp::unbox_n(self))
?? self
!! nqp::p6bigint(pir::ceil__NN(nqp::unbox_n(self)));
!! nqp::fromnum_I(pir::ceil__NN(nqp::unbox_n(self)), Int);
}
method floor(Num:D: ) {
nqp::isnanorinf(nqp::unbox_n(self))
?? self
!! nqp::p6bigint(pir::floor__NN(nqp::unbox_n(self)));
!! nqp::fromnum_I(pir::floor__NN(nqp::unbox_n(self)), Int);
}

proto method sin(|$) {*}
Expand Down

0 comments on commit 2453985

Please sign in to comment.