W3cubDocs

/Haxe C#

Decimal

package cs.system

extends ValueType

implements IComparable_1<Decimal>, IEquatable_1<Decimal>, IComparable, IConvertible, IFormattable

@:struct@:final@:libType@:csNative@:native("System.Decimal") Available on cs

Constructor

@:final @:overload new (lo:Int, mid:Int, hi:Int, isNegative:Bool, scale:UInt8)

@:final @:overload new (bits:NativeArray<Int>)

@:final @:overload new (value:Float)

@:final @:overload new (value:Single)

@:final @:overload new (value:UInt64)

@:final @:overload new (value:Int64)

@:final @:overload new (value:UInt)

@:final @:overload new (value:Int)

Methods

@:final @:overload CompareTo (value:Dynamic):Int

@:final @:overload CompareTo (value:Decimal):Int

@:final @:overload GetTypeCode ():TypeCode

Static variables

@:readOnly static read only MaxValue:Decimal

@:readOnly static read only MinValue:Decimal

@:readOnly static read only MinusOne:Decimal

@:readOnly static read only One:Decimal

@:readOnly static read only Zero:Decimal

Static methods

@:final @:overload static Add (d1:Decimal, d2:Decimal):Decimal

@:final @:overload static Ceiling (d:Decimal):Decimal

@:final @:overload static Compare (d1:Decimal, d2:Decimal):Int

@:final @:overload static Divide (d1:Decimal, d2:Decimal):Decimal

@:final @:overload static Floor (d:Decimal):Decimal

@:final @:overload static FromOACurrency (cy:Int64):Decimal

@:final @:overload static GetBits (d:Decimal):NativeArray<Int>

@:final @:overload static Multiply (d1:Decimal, d2:Decimal):Decimal

@:final @:overload static Negate (d:Decimal):Decimal

@:final @:overload static Parse (s:String):Decimal

@:final @:overload static Parse (s:String, style:NumberStyles, provider:IFormatProvider):Decimal

@:final @:overload static Parse (s:String, provider:IFormatProvider):Decimal

@:final @:overload static Parse (s:String, style:NumberStyles):Decimal

@:final @:overload static Remainder (d1:Decimal, d2:Decimal):Decimal

@:final @:overload static Round (d:Decimal, decimals:Int):Decimal

@:final @:overload static Round (d:Decimal, mode:MidpointRounding):Decimal

@:final @:overload static Round (d:Decimal):Decimal

@:final @:overload static Round (d:Decimal, decimals:Int, mode:MidpointRounding):Decimal

@:final @:overload static Subtract (d1:Decimal, d2:Decimal):Decimal

@:noCompletion @:skipReflection @:final @:overload static ToByte (value:Decimal):UInt8

@:noCompletion @:skipReflection @:final @:overload static ToDouble (d:Decimal):Float

@:noCompletion @:skipReflection @:final @:overload static ToInt16 (value:Decimal):Int16

@:noCompletion @:skipReflection @:final @:overload static ToInt32 (d:Decimal):Int

@:noCompletion @:skipReflection @:final @:overload static ToInt64 (d:Decimal):Int64

@:final @:overload static ToOACurrency (value:Decimal):Int64

@:noCompletion @:skipReflection @:final @:overload static ToSByte (value:Decimal):Int8

@:noCompletion @:skipReflection @:final @:overload static ToSingle (d:Decimal):Single

@:noCompletion @:skipReflection @:final @:overload static ToUInt16 (value:Decimal):UInt16

@:noCompletion @:skipReflection @:final @:overload static ToUInt32 (d:Decimal):UInt

@:noCompletion @:skipReflection @:final @:overload static ToUInt64 (d:Decimal):UInt64

@:final @:overload static Truncate (d:Decimal):Decimal

@:final @:overload static TryParse (s:String, result:Out<Decimal>):Bool

@:final @:overload static TryParse (s:String, style:NumberStyles, provider:IFormatProvider, result:Out<Decimal>):Bool

@:native("Equals") @:final @:overload static _Equals (d1:Decimal, d2:Decimal):Bool

@:final @:overload static op_Addition (d1:Decimal, d2:Decimal):Decimal

@:final @:overload static op_Decrement (d:Decimal):Decimal

@:final @:overload static op_Division (d1:Decimal, d2:Decimal):Decimal

@:final @:overload static op_Equality (d1:Decimal, d2:Decimal):Bool

@:final @:overload static op_Explicit (value:Single):Decimal

@:final @:overload static op_Explicit (value:Decimal):Float

@:final @:overload static op_Explicit (value:Float):Decimal

@:final @:overload static op_GreaterThan (d1:Decimal, d2:Decimal):Bool

@:final @:overload static op_GreaterThanOrEqual (d1:Decimal, d2:Decimal):Bool

@:final @:overload static op_Implicit (value:UInt8):Decimal

@:final @:overload static op_Implicit (value:UInt64):Decimal

@:final @:overload static op_Implicit (value:Int64):Decimal

@:final @:overload static op_Implicit (value:UInt):Decimal

@:final @:overload static op_Implicit (value:Int):Decimal

@:final @:overload static op_Implicit (value:Char16):Decimal

@:final @:overload static op_Implicit (value:UInt16):Decimal

@:final @:overload static op_Implicit (value:Int16):Decimal

@:final @:overload static op_Implicit (value:Int8):Decimal

@:final @:overload static op_Increment (d:Decimal):Decimal

@:final @:overload static op_Inequality (d1:Decimal, d2:Decimal):Bool

@:final @:overload static op_LessThan (d1:Decimal, d2:Decimal):Bool

@:final @:overload static op_LessThanOrEqual (d1:Decimal, d2:Decimal):Bool

@:final @:overload static op_Modulus (d1:Decimal, d2:Decimal):Decimal

@:final @:overload static op_Multiply (d1:Decimal, d2:Decimal):Decimal

@:final @:overload static op_Subtraction (d1:Decimal, d2:Decimal):Decimal

@:final @:overload static op_UnaryNegation (d:Decimal):Decimal

@:final @:overload static op_UnaryPlus (d:Decimal):Decimal

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cs/system/Decimal.html