Chr
chr¶
Convert a decimal integer to its ASCII character. Values below 32 are shifted up by 32; values above 126 are halved until in range. See: https://www.ascii-code.com/
Arguments¶
- $1 (int): Decimal integer to convert
Exit codes¶
- 0: Success
- 1: Input is not an integer
Output on stdout¶
- The ASCII character corresponding to the integer
ord¶
Convert an ASCII character to its decimal value.
Arguments¶
- $1 (string): Single ASCII character to convert
Exit codes¶
- 0: Always
Output on stdout¶
- Decimal value of the character