Number to Octal String

Converts a numeric value to a string that shows the number's octal format.

1378

Inputs/Outputs

datatype_icon

number

A number to be converted into a string.

This input can also be any data type that contains only numbers, such as an array of numbers or a cluster of numbers. If this input is floating-point, this node rounds it to a 64-bit integer before conversion.

datatype_icon

width

A number specifying how many characters to use to express number as a string.

If width is less than the number of characters required, this node uses exactly as many characters as needed. If width is greater than the number of characters required, this node adds a space on the left side of the output string for each additional character.

Default value: No value — Exactly as many characters as are needed to represent the number, with no extra padding.

datatype_icon

octal integer string

number represented as an octal string.

Examples

The following table shows how the values of number and width affect octal integer string.
number width octal integer string Comments
3 4 0003
42 3 052
-4.2 3 37777777774 -4.2 is rounded up to -4 in 64-bit integer format. width is too small to represent the octal version of a negative number, so the field width is extended.