Proposals: Support scientific E notation
Sayakie opened this issue · 0 comments
In most popular programming languages, 6.022E23
(or 6.022e23
) is equivalent to 6.022×1023
, and 1.6×10−35
would be written 1.6E-35
(e.g. C/C++, Java, Python, JavaScript, Rust, and others).
Description
Returns a float multiplied by the specified power of 10.
Syntax
[0-9].e[0-9]
[0-9].E[0-9]
Example
#LOG 1.1 // Prints 1.1
#LOG 1.1e0 // Prints 1.1 (1.1 * 10**0)
#LOG 1.1e1 // Prints 11.0 (1.1 * 10**1)
#LOG 1.1e2 // Prints 110.0 (1.1 * 10**2)
#LOG 1.1e3 // Prints 1100.0 (1.1 * 10**3)
#LOG 8e-2 // Prints 0.08 (8 * 10**-2)