This module, fnInt128Util
contains procedures for converting int128 values to various type of numerical strings.
Note
Unless stated otherwise, procedures of this module are pure procedures.
Uses
Functions
public pure function int128ToBinaryAsU(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1.0.0.f
Convert the input
of type int128 to an unsigned binary string as if the bits are unsigned bits.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=k_int128), | intent(in) | :: | input | An int128 value. |
Return Value character(len=128)
public pure function int128ToBinary(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1.0.0.f
Convert the input
of type int128 to a signed binary string.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=k_int128), | intent(in) | :: | input | An int128 value. |
Return Value character(len=129)
public pure function int128ToOctalAsU(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1.0.0.f
Convert the input
of type int128 to an unsigned octal string as if the bits are unsigned bits.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=k_int128), | intent(in) | :: | input | An int128 value. |
Return Value character(len=43)
public pure function int128ToOctal(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1.0.0.f
Convert the input
of type int128 to a signed octal string.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=k_int128), | intent(in) | :: | input | An int128 value. |
Return Value character(len=44)
public pure function int128ToHexAsU(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1.0.0.f
Convert the input
of type int128 to an unsigned hexadecimal string as if the bits are unsigned bits.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=k_int128), | intent(in) | :: | input | An int128 value. |
Return Value character(len=32)
public pure function int128ToHex(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1.0.0.f
Convert the input
of type int128 to a signed hexadecimal string.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=k_int128), | intent(in) | :: | input | An int128 value. |