Changes

Technical information about Locomotive BASIC

451 bytes added, 16:41, 8 July 2013
/* Exponent */
To obtain the signed exponent, you must subtract 128 from the stored exponent. The minimum exponent is 0 and this describes a number of 2^-127. The maximum exponent is 255 and this describes a number of 2^128.
 
=== BASIC Display of Floating point numbers ====
 
* Numbers are displayed to 8 decimal places.
* If the number doesn't have a fractional part (e.g. .0) then the fractional part is not displayed.
* Trailing zeros (zero digits after the last digit in the fraction) are not displayed
* The value is always rounded up to 8 decimal places when displayed. If the 9th decimal place was 4, it would still cause the 8th digit to be rounded up when displayed.
=== floating point example in RAM by MaV ===
2,562
edits