This documentation is out of date.
The new version of the documentation is here: https://cannylogic.com/docs |
Integer to ASCII
Appearance | |
---|---|
Изображение:5_10_6_2.png | |
Symbol | |
ITOA | |
Group | |
Converters | |
Outputs | |
Number: | числовой |
Baseе: | числовой |
Outputs | |
Symbols 1 & 0: | пара ASCII символов |
... | ... |
Symbols 15 & 14: | пара ASCII символов |
Version CANNY Lab | |
from 1.8 |
Converts a numeric value in to a hexadecimal string representation of the specified base 2, 10 or 16.
Contents
Features
Символы результирующего, выравненного по правому краю строкового представления заданного на входе числа, устанавливаются на соответствующих выходах в верхнем регистре, незадействованные старшие разряды заполняются символами «0».
In the case of using an invalid base value, the output value will be set to "0000000000000000".
Examples
thumb|23456 по основанию 2 = «0101101110100000» | thumb|23456 по основанию 10 = «0000000000023456» |
thumb|23456 по основанию 16 = «0000000000005BA0» |
Notes
With the release of CANNY Lab version 1.8 a new data presentation added - "A pair of characters" in which the values are represented by two characters ASCII with the codes given by high and low bytes of displaying 16-bit value .
For example, the decimal number 19778 corresponding hexadecimal 0x4B4E, displayed a pair of characters «KN», having ASCII-code 0x4B, and 0x4E respectively.