Category talk:Wren-big: Difference between revisions

→‎Source code: Harmonization of constants between numeric modules.
(→‎Source code: Added some more constants, 'dim' method and several other minor changes.)
(→‎Source code: Harmonization of constants between numeric modules.)
Line 1,644:
 
// Constants.
static minusOne { BigRat.new(BigInt.minusOne, BigInt.one) }
static zero { BigRat.new(BigInt.zero, BigInt.one) }
static one { BigRat.new(BigInt.one, BigInt.one) }
static two { BigRat.new(BigInt.two, BigInt.one) }
static ten three { BigRat.new(BigInt.tenthree, BigInt.one) }
static halffour { BigRat.new(BigInt.onefour, BigInt.twoone) }
static tenthfive { BigRat.new(BigInt.onefive, BigInt.tenone) }
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.
9,476

edits