While I'm here, just so you know, the transpiler handles scientific notation:
; Scientific notation: a number times a power of 10
Function Main()
Local lightSpeed:Double = 3.0e8 ; 300,000,000 metres a second
Local kilo:Double = 1e3 ; 1,000
Local grams:Double = 2.5E+3 ; 2,500 (E or e, and + is optional)
Local tiny:Double = 4.5e-3 ; 0.0045
Print "Light: " & ToString(lightSpeed)
Print "Kilo: " & ToString(kilo)
Print "Grams: " & ToString(grams)
Print "Tiny: " & ToString(tiny)
Print "One light-millisecond: " & ToString(lightSpeed * 1e-3) & " metres"
Return 0
EndFunction
Output:
Light: 300000000.000000
Kilo: 1000.000000
Grams: 2500.000000
Tiny: 0.004500
One light-millisecond: 300000.000000 metres
3.0e8 means 3.0 × 10⁸, and a minus after the e makes it small: 4.5e-3 is 0.0045. It works for literals anywhere in an expression, like lightSpeed * 1e-3. As before, the output is written out in full, not in e-notation.
Dabzy