FixedDecimalMethods class | QSYS API Reference Guide
Estimated reading time: 4 minutes
Contains extension methods for handling RPG operations for FixedDecimal values.
Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll
Inheritance: Object
Methods
string ApplyEditWord<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> num, string editwordString)
Applies an edit word to a FixedDecimal number.
string ApplyEditWord<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> num, string editwordString)
char MoveLeftToChar<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source)
RPG’s MOVEL. Moves left a decimal to a char.
char MoveLeftToChar<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source)
char MoveRightToChar<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source)
RPG’s MOVE. Moves right a decimal to a char.
char MoveRightToChar<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source)
decimal RoundUp<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> num, int decimalCount)
Rounds up a decimal number to the desired decimal positions.
decimal RoundUp<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> num, int decimalCount)
decimal SetHiLoEq<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source, Indicator& hi, Indicator& lo, Indicator& eq)
Sets the HI, LO, and EQ flags passed in, based on the value of source.
decimal SetHiLoEq<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source, Indicator& hi, Indicator& lo, Indicator& eq)
bool TestTime<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source, DateTimeDataKind kind, DateTimeFormat format)
Tests whether a decimal number contains a valid date/time/timestamp value.
bool TestTime<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source, DateTimeDataKind kind, DateTimeFormat format)
DateTime ToDate<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source, DateTimeFormat format)
Converts a fixed decimal number to a date in the specified format.
DateTime ToDate<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source, DateTimeFormat format)
string ToStringBinary<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source)
Returns as a string the ‘memory’ representation of a binary decimal number.
string ToStringBinary<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source)
string ToStringPacked<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source)
Returns as a string the ‘memory’ representation of a packed decimal number.
string ToStringPacked<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source)
string ToStringZoned<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source)
Returns as a string the ‘memory’ representation of a zoned decimal number.
string ToStringZoned<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source)
DateTime ToTime<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source, DateTimeFormat format)
Converts a fixed decimal number to a time in the specified format.
DateTime ToTime<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source, DateTimeFormat format)
DateTime ToTimestamp<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source)
Converts a fixed decimal number to a timestamp.
DateTime ToTimestamp<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals> source)