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

Signature Description
ApplyEditWord<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals>, String) Applies an edit word to a FixedDecimal number.
MoveLeftToChar<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals>) RPG’s MOVEL. Moves left a decimal to a char.
MoveRightToChar<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals>) RPG’s MOVE. Moves right a decimal to a char.
RoundUp<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals>, Int32) Rounds up a decimal number to the desired decimal positions.
SetHiLoEq<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals>, Indicator&, Indicator&, Indicator&) Sets the HI, LO, and EQ flags passed in, based on the value of source.
TestTime<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals>, DateTimeDataKind, DateTimeFormat) Tests whether a decimal number contains a valid date/time/timestamp value.
ToDate<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals>, DateTimeFormat) Converts a fixed decimal number to a date in the specified format.
ToStringBinary<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals>) Returns as a string the ‘memory’ representation of a binary decimal number.
ToStringPacked<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals>) Returns as a string the ‘memory’ representation of a packed decimal number.
ToStringZoned<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals>) Returns as a string the ‘memory’ representation of a zoned decimal number.
ToTime<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals>, DateTimeFormat) Converts a fixed decimal number to a time in the specified format.
ToTimestamp<TDigits, TDecimals>(FixedDecimal<TDigits, TDecimals>) Converts a fixed decimal number to a timestamp.

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)