This module, fniInt128Util
contains procedures for converting int128 values to various type of numerical strings.
Note
Procedures of this module may not be pure procedures.
Uses
Functions
public function int128ToBinaryAsU(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1n.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 function int128ToBinary(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1n.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 function int128ToOctalAsU(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1n.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 function int128ToOctal(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1n.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 function int128ToHexAsU(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1n.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 function int128ToHex(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1n.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. |