Number functionality.

Contains methods to convert and manipulate Numbers, especially Monetary Values.

Methods

Name Description
AmountInWords Converts a Currency (Decimal) value into the equivalent text words.
CastNullableIntegerToInteger Cast a Nullable Integer to an Integer, assuming Null=0.
ConvertToCurrency Converts a Variable to the equivalent Currency (Decimal) Variable Type.
ConvertToDecimal Converts a Variable to the equivalent Decimal Variable Type.
ConvertToDouble Converts a Variable to the equivalent Double Variable Type.
ConvertToInteger Converts a Variable to the equivalent Integer Variable Type.
ConvertToLong Converts a Variable to the equivalent Long Variable Type.
GetRandomInteger Returns as random Integer between minValue and maxValue inclusive.
HiWord Returns the HiWord (the upper 16 bits) of a 32-bit Integer value.
IsInteger Returns True if Value contains only numbers, i.e. the characters 0123456789.
LoWord Returns the LoWord (the lower 16 bits) of a 32-bit Integer value.
RoundCurrency Rounds a currency value to the next smallest value. Note, .5 rounds up.
RoundCurrencyDown Rounds a currency value DOWN to the next smallest value.
RoundCurrencyUp Rounds a currency value UP to the next smallest value.
RoundDecimal Rounds a Decimal value to the decimal places specified.
RoundDouble Rounds a Double value to the decimal places specified.
SimplifyBinaryNumber Returns a text description of the bytes value, expressed in TB, GB, MB, KB, and Bytes
TaxCalculateInclusive Returns the GST portion of a GST inclusive amount.

Properties

Name Description
CurrencyDigits Read-Only The number of Decimal Places in a Currency number.
SmallestCurrency Read-Only Returns the Smallest Currency Value, eg $0.01 if two decimal places
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0