Numeric Data Types
ViviFire supplies many numeric data types to use numbers with different formats. Integer types show as whole numbers, while non-integer types can show numbers with a fractional part.
To compare all the ViviFire data types, see Data Type Summary.
The signed integer data types are as follows:
The unsigned integer data types are as follows:
Arithmetic operations are faster with integer types than with other data types.
If the full range of
Int32 is more than what is necessary,
Int16 is a possible alternative.
Int16 holds integer values in the range −32,768 thru 32,767.
For the smallest integer range, the type
Int8 holds values from −128 thru 127.
Some code uses a large number of variables to hold small integers.
If your code uses the types
Int8 for its variables, the runtime can possibly decrease the memory used.
But operations with
Int8 are usually slower than with
If you know that a variable must not hold a negative value, the unsigned types are available.
The unsigned types are
Each of these data types can hold a positive integer two times larger than the related signed type (
The performance of each unsigned type is the same as the related signed type.
Int32 have the same performance.
The non-integer numeric data types are as follows:
Small fractional numbers