GoFiler Legato Script Reference
Legato v 1.5b Application v 5.24b
|
Table of Contents | < < Previous | Next >> |
Chapter Three — Data Types and Operators (continued)
Numeric literals specify numeric data within the source code of the script. A numeric literal is a series of characters containing only numeric digits (0-9) and potentially a decimal point. Numeric literals can be integers or floating-point numbers up to and including 64 bits. For example:
int x;
x = 12;
float y;
y = 2.5;
Numeric literals often appear during assignment statements and mathematical operations. They are also permissible in mathematical comparisons.
In addition to decimal, octal and hexadecimal values can be used. For example, hex can be added by leading with the prefix string ‘0x’:
x = 0x3FFF;
The A-F digits can be upper or lower case.
Octal is assumed any time the number is lead with a zero:
x = 0377;
Therefore, the following are the same:
x = 255;
x = 0xFF;
x = 0377;
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.