This documentation is out of date.

The new version of the documentation is here: https://cannylogic.com/docs

Integer to ASCII

From CANNY Wiki
Revision as of 09:18, 19 November 2015 by MEGA (Talk | contribs) (Created page with " <div style="float:right;margin:5px;"> {|class="cannytable" width="350px" |- !colspan="2" style="background-color:#AFEEEE;"|Appearance |- |colspan="2" align="center" style="...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Jump to: navigation, search
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

left|Иконка

Converts a numeric value in to a hexadecimal string representation of the specified base 2, 10 or 16.


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.

See also

Converter 8-to-1

Converter 16-to-1

Converter 1-to-8

Converter 1-to-16

ASCII to Integer

Встроенные функциональные блоки