Function that converts an integer numeric value to an ascii character.
Syntax |
string str_chr (i32 value) |
---|---|
value |
Is an integer type expression representing the value to be converted |
Result |
Returns the string containing the character corresponding to the ascii code value |
Validity |
Rule, Task |
Note |
The conversion is done by complying with the following rules: •the variable is treated in a manner consistent with the treatment of integer type expressions •the obtained integer variable is converted from decimal format to hexadecimal format •only the last two hexadecimal digits are taken |
WARNING: Attention should be given that this function can also return the ascii NULL character (00), which is interpreted as a string terminator by the R3 language.
Example usage:
|