This would even increase the QBasic -> PB portability.
Atm it is not possible to define some physical constants directly.
E.g. I defined 1 eV = 1.602e-19 by the lines:
Code: Select all
a.f = 1.602
For i=1 to 19
a/10
Next
debug StrF(a, 30)
Further the StrF() could give a mantisse/exponent - formatted String when using -1 as Value for the NBDecimals, or even more consistent in my eyes:
StrF(a.f) should give the mantisse/exponent-representation, and
StrF(a.f, NBDecimals) should give the rational representation with the specified number of post-comma-digits.
This shouldn't be hard to implement, because the float-format already contains the values for sign/mantisse/exponent seperately in it's binary representation.