mono-api-decimal.html
Decimal Support
You can use the mono_decimal functions to access and
manipulate System.Decimal types from C.
mono_decimal2double
Prototype: mono_decimal2double
mono_decimal2Int64
gint32 mono_decimal2Int64(/*[In]*/decimal_repr* pA, gint64* pResult)
Parameters
pA:pResult:
Remarks
converts a decimal to an Int64 without rounding
mono_decimal2string
Prototype: mono_decimal2string
mono_decimal2UInt64
gint32 mono_decimal2UInt64(/*[In]*/decimal_repr* pA, guint64* pResult)
Remarks
pA
pResult
converts a decimal to an UInt64 without rounding
mono_decimalCompare
Prototype: mono_decimalCompare
mono_decimalDiv
Prototype: mono_decimalDiv
mono_decimalFloorAndTrunc
Prototype: mono_decimalFloorAndTrunc
mono_decimalIncr
Prototype: mono_decimalIncr
mono_decimalIntDiv
Prototype: mono_decimalIntDiv
mono_decimalMult
Prototype: mono_decimalMult
mono_decimalRound
Prototype: mono_decimalRound
mono_decimalSetExponent
Prototype: mono_decimalSetExponent
mono_double2decimal
Prototype: mono_double2decimal