BuiltInMethods class | QSYS API Reference Guide
Estimated reading time: 6 minutes
Contains extension methods for handling Built-in functions according to RPG semantics.
Namespace: ASNA.QSys.Runtime
Assembly: ASNA.QSys.Runtime.dll
Inheritance: Object
Methods
Signature |
Description |
BIInt(Decimal, Boolean) |
Convert to Integer with half adjust. |
BIInt(Single, Boolean) |
Convert to Integer with half adjust. |
BIInt(Double, Boolean) |
Convert to Integer with half adjust. |
BIInt(String, Boolean) |
Convert to Integer with half adjust. |
BIInt<TLen>(FixedString<TLen>, Boolean) |
Convert to Integer with half adjust. |
BIUns(Decimal, Boolean) |
Convert to Unsigned Integer with half adjust. |
BIUns(Int32, Boolean) |
Convert to Unsigned Integer with half adjust. |
BIUns(Single, Boolean) |
Convert to Unsigned Integer with half adjust. |
BIUns(Double, Boolean) |
Convert to Unsigned Integer with half adjust. |
BIUns(String, Boolean) |
Convert to Unsigned Integer with half adjust. |
BIUns<TLen>(FixedString<TLen>, Boolean) |
Convert to Unsigned Integer with half adjust. |
Convert to Integer with half adjust.
int BIInt(decimal num, bool halfAdjust)
Parameters
Type |
Parameter name |
Description |
Decimal |
num |
Input decimal number. |
Boolean |
halfAdjust |
True if half-adjust is requested; False otherwise. |
Returns
Type |
Description |
Int32 |
The number converted. |
Convert to Integer with half adjust.
int BIInt(float num, bool halfAdjust)
Parameters
Type |
Parameter name |
Description |
Single |
num |
Input floating number. |
Boolean |
halfAdjust |
True if half-adjust is requested; False otherwise. |
Returns
Type |
Description |
Int32 |
The number converted. |
Convert to Integer with half adjust.
int BIInt(double num, bool halfAdjust)
Parameters
Type |
Parameter name |
Description |
Double |
num |
Input double number. |
Boolean |
halfAdjust |
True if half-adjust is requested; False otherwise. |
Returns
Type |
Description |
Int32 |
The number converted. |
Convert to Integer with half adjust.
int BIInt(string num, bool halfAdjust)
Parameters
Type |
Parameter name |
Description |
String |
num |
Input number as string. |
Boolean |
halfAdjust |
True if half-adjust is requested; False otherwise. |
Returns
Type |
Description |
Int32 |
The number converted. |
Convert to Integer with half adjust.
int BIInt<TLen>(FixedString<TLen> num, bool halfAdjust)
Parameters
Type |
Parameter name |
Description |
FixedString<TLen> |
num |
Input fixed-string number. |
Boolean |
halfAdjust |
True if half-adjust is requested; False otherwise. |
Returns
Type |
Description |
Int32 |
The number converted. |
Convert to Unsigned Integer with half adjust.
int BIUns(decimal num, bool halfAdjust)
Parameters
Type |
Parameter name |
Description |
Decimal |
num |
Input decimal number. |
Boolean |
halfAdjust |
True if half-adjust is requested; False otherwise. |
Returns
Type |
Description |
Int32 |
The number converted. |
Convert to Unsigned Integer with half adjust.
int BIUns(int num, bool halfAdjust)
Parameters
Type |
Parameter name |
Description |
Int32 |
num |
Input integer number. |
Boolean |
halfAdjust |
True if half-adjust is requested; False otherwise. |
Returns
Type |
Description |
Int32 |
The number converted. |
Convert to Unsigned Integer with half adjust.
int BIUns(float num, bool halfAdjust)
Parameters
Type |
Parameter name |
Description |
Single |
num |
Input floating number. |
Boolean |
halfAdjust |
True if half-adjust is requested; False otherwise. |
Returns
Type |
Description |
Int32 |
The number converted. |
Convert to Unsigned Integer with half adjust.
int BIUns(double num, bool halfAdjust)
Parameters
Type |
Parameter name |
Description |
Double |
num |
Input double number. |
Boolean |
halfAdjust |
True if half-adjust is requested; False otherwise. |
Returns
Type |
Description |
Int32 |
The number converted. |
Convert to Unsigned Integer with half adjust.
int BIUns(string num, bool halfAdjust)
Parameters
Type |
Parameter name |
Description |
String |
num |
Input number as string. |
Boolean |
halfAdjust |
True if half-adjust is requested; False otherwise. |
Returns
Type |
Description |
Int32 |
The number converted. |
Convert to Unsigned Integer with half adjust.
int BIUns<TLen>(FixedString<TLen> num, bool halfAdjust)
Parameters
Type |
Parameter name |
Description |
FixedString<TLen> |
num |
Input number as fixed-string. |
Boolean |
halfAdjust |
True if half-adjust is requested; False otherwise. |
Returns
Type |
Description |
Int32 |
The number converted. |