A newer version of Max is available. Click here to access the latest version of the documentation

atoi Reference

Convert ASCII characters to integers

atoi

Examples

Arguments

None.

Attributes

utf8 [int] (default: 0)

UTF-8 Output

Common Box Attributes

Messages

bang

In left inlet: a bang message can be used to trigger the output of the currently stored numerical list. A bang in the right two inlets is treated as a symbol.

int

Arguments

input [int]
In left inlet: The ASCII value of each of the digits of the number is stored internally and sent out the outlet as a list.

float

Arguments

input [float]
In left inlet: The ASCII value of each of the digits of the number is stored internally and sent out the outlet as a list.

list

Arguments

input [list]
Each int in the list is converted to ASCII as described above, and a space character (ASCII value 32) is inserted between items in the list. The middle inlet is used to append to the currently stored list, and the right inlet will set the contents of the internally stored list, without causing output.

anything

Arguments

input [list]
In left inlet: The ASCII value of each letter, digit, or other character in the symbol is stored internally and sent out the outlet as a list.

In middle inlet: The ASCII value of each letter, digit, or other character in the symbol is appended to the currently stored list. No output is triggered.

In right inlet: The ASCII value of each letter, digit, or other character in the symbol is stored internally, replacing the previously stored list, but not output.

clear

In left inlet: The clear message is used to clear the contents of the internally-stored numerical list. The word clear in the right two inlets is treated as a symbol.

Output

list

The ASCII representation of the input is sent out as a list of integers.

See Also

Name Description
itoa
key
keyup
message
regexp
spell
sprintf