Category talk:Wren-big: Difference between revisions
Content added Content deleted
(→Source code: Added some more constants, 'dim' method and several other minor changes.) |
(→Source code: Harmonization of constants between numeric modules.) |
||
Line 1,644: | Line 1,644: | ||
// Constants. |
// Constants. |
||
static minusOne { BigRat.new(BigInt.minusOne, BigInt.one) } |
static minusOne { BigRat.new(BigInt.minusOne, BigInt.one) } |
||
static zero { BigRat.new(BigInt.zero, BigInt.one) } |
static zero { BigRat.new(BigInt.zero, BigInt.one) } |
||
static one { BigRat.new(BigInt.one, BigInt.one) } |
static one { BigRat.new(BigInt.one, BigInt.one) } |
||
static two { BigRat.new(BigInt.two, BigInt.one) } |
static two { BigRat.new(BigInt.two, BigInt.one) } |
||
static |
static three { BigRat.new(BigInt.three, BigInt.one) } |
||
static |
static four { BigRat.new(BigInt.four, BigInt.one) } |
||
static |
static five { BigRat.new(BigInt.five, BigInt.one) } |
||
static six { BigRat.new(BigInt.six, BigInt.one) } |
|||
static seven { BigRat.new(BigInt.seven, BigInt.one) } |
|||
static eight { BigRat.new(BigInt.eight, BigInt.one) } |
|||
static nine { BigRat.new(BigInt.nine, BigInt.one) } |
|||
static ten { BigRat.new(BigInt.ten, BigInt.one) } |
|||
static half { BigRat.new(BigInt.one, BigInt.two) } |
|||
static third { BigRat.new(BigInt.one, BigInt.three) } |
|||
static quarter { BigRat.new(BigInt.one, BigInt.four) } |
|||
static fifth { BigRat.new(BigInt.one, BigInt.five) } |
|||
static sixth { BigRat.new(BigInt.one, BigInt.six) } |
|||
static seventh { BigRat.new(BigInt.one, BigInt.seven) } |
|||
static eighth { BigRat.new(BigInt.one, BigInt.eight) } |
|||
static ninth { BigRat.new(BigInt.one, BigInt.nine) } |
|||
static tenth { BigRat.new(BigInt.one, BigInt.ten) } |
|||
// Constructs a new BigRat object by passing it a numerator and a denominator. |
// Constructs a new BigRat object by passing it a numerator and a denominator. |