Category talk:Wren-math: Difference between revisions
Content added Content deleted
(→Source code: Removed all methods which are now in core library as well as type aliases. Added Int.isSquare and Int.isCube methods.) |
(→Source code: Removed a constant which is now in the core library.) |
||
Line 88: | Line 88: | ||
/* Int contains various routines which are only applicable to integers. */ |
/* Int contains various routines which are only applicable to integers. */ |
||
class Int { |
class Int { |
||
// Maximum safe integer = 2^53 - 1. |
|||
static maxSafe { 9007199254740991 } |
|||
// Returns whether or not 'n' is a perfect square. |
// Returns whether or not 'n' is a perfect square. |
||
static isSquare(n) { |
static isSquare(n) { |