This documentation is out of date.

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

Difference between revisions of "Integer to ASCII"

From CANNY Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Features)
Line 1: Line 1:
 +
__NOTOC__
  
 
<div style="float:right;margin:5px;">
 
<div style="float:right;margin:5px;">
Line 16: Line 17:
 
|colspan="2" align="center"|[[Built-in Function Blocks#Converters | Converters]]
 
|colspan="2" align="center"|[[Built-in Function Blocks#Converters | Converters]]
 
|-
 
|-
!colspan="2" style="background-color:#AFEEEE;"|Outputs
+
!colspan="2" style="background-color:#AFEEEE;"|Inputs
 
|-
 
|-
|style="padding-left:1em;"|Number:
+
|style="padding-left:1em;"|Integer:
|style="padding-left:1em;"|[[Язык CFD#Данные|числовой]]
+
|style="padding-left:1em;"|[[CFD Language#Data|Integer]]
 
|-
 
|-
|style="padding-left:1em;"|Baseе:
+
|style="padding-left:1em;"|Base:
|style="padding-left:1em;"|[[Язык CFD#Данные|числовой]]
+
|style="padding-left:1em;"|[[CFD Language#Data|Integer]]
 
|-
 
|-
 
!colspan="2" style="background-color:#AFEEEE;"|Outputs
 
!colspan="2" style="background-color:#AFEEEE;"|Outputs
 
|-
 
|-
|style="padding-left:1em;"|Symbols 1 & 0:
+
|style="padding-left:1em;"|Characters 1 & 0:
|style="padding-left:1em;"|[[Конвертер числа в строку символов#Примечания|пара ASCII символов]]
+
|style="padding-left:1em;"|[[#Notes|A pair of  ASCII characters]]
 
|-
 
|-
 
|style="padding-left:1em;"|...
 
|style="padding-left:1em;"|...
 
|style="padding-left:1em;"|...
 
|style="padding-left:1em;"|...
 
|-
 
|-
|style="padding-left:1em;"|Symbols 15 & 14:
+
|style="padding-left:1em;"|Characters 15 & 14:
|style="padding-left:1em;"|[[Конвертер числа в строку символов#Примечания|пара ASCII символов]]
+
|style="padding-left:1em;"|[[#Notes|A pair of  ASCII characters]]
 
|-
 
|-
 
!colspan="2" style="background-color:#AFEEEE;"|Version [[CANNY Lab]]
 
!colspan="2" style="background-color:#AFEEEE;"|Version [[CANNY Lab]]
Line 83: Line 84:
 
[[ASCII to Integer]]
 
[[ASCII to Integer]]
  
[[Справочник по встроенным функциональным блокам | Встроенные функциональные блоки]]
+
[[Built-in_Function_Blocks | Built-in Function Blocks]]

Revision as of 22:04, 19 November 2015


Appearance
Изображение:5_10_6_2.png
Symbol
ITOA
Group
Converters
Inputs
Integer: Integer
Base: Integer
Outputs
Characters 1 & 0: A pair of ASCII characters
... ...
Characters 15 & 14: A pair of ASCII characters
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

Symbols resultаnt, flattened on the right edge of the string representation specified on the input number, are set at the respective outputs in upper register, unused upper bits are filled with the symbols "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

Built-in Function Blocks