Long
This is an abbreviation for Long Integers.
The Long data type can contain whole numbers between -2,147,483,648 and 2,147,486,647
This data type uses 4 bytes
One byte is used to represent the sign (either positive or negative)
The default value is 0.
Adding Two Numbers
Declare two variables with the values (5 and 12) and add them together.
Integer Rounding <> 0.5
Declare two variables with the values (5.4) and 12.6) and add them together.
Integer Rounding - 0.5
Declare two variables with the values (5.5) and 12.5) and add them together.
Any fractional parts equal to 0.5 are rounded (down or up) to the nearest even number.
Although this type of rounding is unusual it is by design to compensate for a bias that could accumulate when adding a lot of 0.5 fractions.
Conversion Function
The CLNG function returns an expression converted to a Long data type.
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext