HTBasic Help
×
Menu
Index

Numeric Items

 
Numeric items are converted to standard numeric format: The number is rounded to twelve significant digits. If the absolute value is outside the range 1E-4 to 1E+6, then the number is output in scientific notation. If the number is negative, a leading minus sign is sent; if the number is positive, a leading space is sent instead. Trailing zeros or decimal points are not output. If a comma follows the output item, then a comma is sent as an item separator. If a semicolon follows the output item, then no item separator is sent. If a full array is sent, a comma will be sent to separate each element unless a semicolon follows the output item (the array).
 
Complex items are output in rectangular form, real part first, then a comma, and finally, the imaginary part. Real and imaginary parts are formatted in standard numeric format as explained in the previous paragraph. If a semicolon follows the complex item then the comma separating the real and imaginary parts is suppressed.