Skip to main content
Version: 25.2

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

Digits in numeric literals (0,1,2,3,4,5,6,7,8,9)

Examples:

put 365.25 days into yearLength

Digits in hexadecimal numeric literals (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F)

Examples:

set magicNumber to 0x3F57ED2

Hex digits used in binary data literals (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F)

Examples:

put <53656e73 6554616c 6b21> into msgData

Numeric literals using mixed fractions (new in 1.67)

Mixed fractions like "6 5/8" are now supported provided there is a single space character between the whole number and the fraction and no spaces around the '/' character. Simple fractions with units, of the form "3/4 ft", are now processed by the compiler as a single number (rather than 2 numbers and a division operator) provided the fraction is directly written with numbers (not variables or other expressions) and is followed by a unit name.

Examples:

set width to 7/16 inch
add 27 1/2 to total