Conversão Texto-Integer

Interpreta códigos de caracteres como inteiro grande big-endian, ou faz o inverso.

Entrada: TextoResultado: Texto

Entrada de texto

Opções

Exemplos

Text-Integer Conversion decimal to hex conversion

Entrada

255

Expected answer

0xff
Formato de saída
Hexadecimal
Text-Integer Conversion decimal to string

Entrada

4276803

Expected answer

ABC
Formato de saída
String
Text-Integer Conversion hex to decimal conversion

Entrada

0xFF

Expected answer

JSON
255
Formato de saída
Decimal
Text-Integer Conversion hexadecimal to string

Entrada

0x48656C6C6F

Expected answer

Hello
Formato de saída
String
Text-Integer Conversion large number to string

Entrada

113091951015816448506195587157728348242683688608116

Expected answer

Mary had a little cat
Formato de saída
String
Text-Integer Conversion non-Latin1 character in input

Entrada

fbf874ce8b4307a14096566f.bin

4 bytes

Baixar

Expected rejection

Message contains
Character at position 1 exceeds Latin-1 range (0-255).
Only ASCII and Latin-1 characters are supported.
Formato de saída
Decimal
Text-Integer Conversion quoted string to decimal

Entrada

"ABC"

Expected answer

JSON
4276803
Formato de saída
Decimal
Text-Integer Conversion quoted string to hexadecimal

Entrada

"ABC"

Expected answer

0x414243
Formato de saída
Hexadecimal
Text-Integer Conversion single character

Entrada

"A"

Expected answer

JSON
65
Formato de saída
Decimal
Text-Integer Conversion single quoted string to decimal

Entrada

'Hello'

Expected answer

JSON
310939249775
Formato de saída
Decimal

Parâmetros

ParâmetroValor padrãoEntrada e opções
Formato de saídaCadeiaCadeia, Decimal, Hexadecimal

Ferramentas relacionadas

Formato de dados

Referência da operação

Ver a documentação técnica original (English)