REM, ' and # can only be at the start of a line. You have to use ! after any other statement. Yup, other Basics often use ! as bitwise OR. You'll get used to it!
See the bottom of page 32 (40 in the PDF) in the 1.27 user manual
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In my version 1.27 X11 Basic MS Windows program I write
G1 = 6.6743e-011
but "Print G1" results in:
8.839635186158e-062
Why is this?
EDIT: To get the correct value I have to write this in the source code.
G1 = 6.6743/10^2
G1 = G1*10
then "Print G1" will give the correct value:
6.6743e-011
Last edit: Eric Erpelding 2025-10-17
Strange. ran this on another computer and got the correct result
G=6.67e-11
Print G
This comment is causing the problem!
G1 = 6.6743E-11 ' m^3 kg^-1 s^-2
The presence of this comment is affecting the value of the assignment.
REM, ' and # can only be at the start of a line. You have to use ! after any other statement. Yup, other Basics often use ! as bitwise OR. You'll get used to it!
See the bottom of page 32 (40 in the PDF) in the 1.27 user manual