View source

abstract thx.Decimal(DecimalImpl) from DecimalImpl to DecimalImpl

Available on all platforms

Class Fields

var divisionScale(get,set):Int

var one(default,null):DecimalImpl

var zero(default,null):DecimalImpl

inline function compare(a:Decimal, b:Decimal):Int

function equals(self:Decimal, that:Decimal):Bool

function fromBigInt(value:BigInt):Decimal

inline function fromFloat(value:Float):Decimal

function fromInt(value:Int):Decimal

function fromInt64(value:Int64):Decimal

inline function fromString(value:String):Decimal

function greater(self:Decimal, that:Decimal):Bool

function greaterEquals(self:Decimal, that:Decimal):Bool

function less(self:Decimal, that:Decimal):Bool

function lessEquals(self:Decimal, that:Decimal):Bool

function notEquals(self:Decimal, that:Decimal):Bool

inline function randomBetween(a:Decimal, b:Decimal):Decimal

Instance Fields

inline function abs():Decimal

inline function add(that:Decimal):Decimal

inline function ceil():Decimal

inline function ceilTo(decimals:Int):Decimal

inline function compareAbs(that:Decimal):Int

inline function compareTo(that:Decimal):Int

inline function divide(that:Decimal):Decimal

function equalsTo(that:Decimal):Bool

inline function floor():Decimal

inline function floorTo(decimals:Int):Decimal

function greaterEqualsTo(that:Decimal):Bool

function greaterThan(that:Decimal):Bool

inline function isEven():Bool

inline function isNegative():Bool

inline function isOdd():Bool

inline function isPositive():Bool

inline function isZero():Bool

function lessEqualsTo(that:Decimal):Bool

function lessThan(that:Decimal):Bool

inline function max(that:Decimal):Decimal

inline function min(that:Decimal):Decimal

inline function modulo(that:Decimal):Decimal

inline function multiply(that:Decimal):Decimal

inline function negate():Decimal

inline function next():Decimal

function notEqualsTo(that:Decimal):Bool

inline function postDecrement():Decimal

inline function postIncrement():Decimal

inline function pow(exp:Int):Decimal

inline function preDecrement():Decimal

inline function preIncrement():Decimal

inline function prev():Decimal

inline function round():Decimal

inline function roundTo(decimals:Int):Decimal

inline function scaleTo(decimals:Int):Decimal

inline function square():Decimal

inline function subtract(that:Decimal):Decimal

function toBigInt():BigInt

inline function toFloat():Float

inline function toInt():Int

inline function toInt64():Int64

inline function toString():String

inline function trim(?mindecimals:Int):Decimal