How to Encode Numbers
What does this mean?
Most of us are familiar with numbers like 10, sixteen, and 65,535. However, different places follow different conventions for writing them down, and this is also a problem for computers. As numbers are a very important part of scripts, this page quickly summarizes the two ways you can include a number in your code.
Decimal numbers
You can specify whole integers by simply writing them. To follow up on the previous example, 10, 16, and 65535 are valid numbers. You can also specify negative numbers by prefixing an integer with a hyphen, like so: -13.
At present, there is no way to specify a floating point number, like 3.14 or 0.25 .
Hexadecimal numbers
Hexadecimal, also known as base 16, is often used to describe colors. If you want to use hexadecimal, prefix the hexadecimal digits with 0x . For example, to write 10, 16, and 65535 in hexadecimal, you'd use 0x0A, 0x10, and 0xFFFF .
But, there's a catch: color values are not stored in the traditional RGB order internally. To fix this problem, don't use hexadecimal as a color value directly. Pass your hexadecimal color value to the COLOR.NEW command and use the return value in your script.