Liberty BASIC defaults to integer arithmetic unless you do something that produces a floating point result. For example:
a =3+4'integer calculationfor x =1to10'integer calculation
Floating Point
Or floating point:
a =0.3+0.4'floating point
Convert Float to Integer
If a floating point result has a zero fractional part (this doesn't happen too often), then LB will convert it to an integer number on assignment. This is dependent on the math processor, and probably other variables.
Integer Arithmetic
-Table of Contents
Integer
Liberty BASIC defaults to integer arithmetic unless you do something that produces a floating point result. For example:Floating Point
Or floating point:Convert Float to Integer
If a floating point result has a zero fractional part (this doesn't happen too often), then LB will convert it to an integer number on assignment. This is dependent on the math processor, and probably other variables.-Carl