This module, fniInt32Util
contains procedures for converting int32 values to various type of numerical strings.
Note
Procedures of this module may not be pure procedures.
Uses
Functions
public function int32ToBinaryAsU(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1n.0.0.f
Convert the input
of type int32 to an unsigned binary string as if the bits are unsigned bits.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=k_int32), | intent(in) | :: | input | An int32 value. |
Return Value character(len=32)
public function int32ToBinary(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1n.0.0.f
Convert the input
of type int32 to a signed binary string.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=k_int32), | intent(in) | :: | input | An int32 value. |
Return Value character(len=33)
public function int32ToOctalAsU(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1n.0.0.f
Convert the input
of type int32 to an unsigned octal string as if the bits are unsigned bits.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=k_int32), | intent(in) | :: | input | An int32 value. |
Return Value character(len=11)
public function int32ToOctal(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1n.0.0.f
Convert the input
of type int32 to a signed octal string.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=k_int32), | intent(in) | :: | input | An int32 value. |
Return Value character(len=12)
public function int32ToHexAsU(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1n.0.0.f
Convert the input
of type int32 to an unsigned hexadecimal string as if the bits are unsigned bits.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=k_int32), | intent(in) | :: | input | An int32 value. |
Return Value character(len=8)
public function int32ToHex(input) result(strOut)
- Author
- Khang Hoang Nguyen
- Since
- 1n.0.0.f
Convert the input
of type int32 to a signed hexadecimal string.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=k_int32), | intent(in) | :: | input | An int32 value. |