govaluate icon indicating copy to clipboard operation
govaluate copied to clipboard

Exponential literals

Open curio77 opened this issue 7 years ago • 1 comments

govaluate currently doesn't seem to support exponential literals (e.g., 1e5, 1e-3).

curio77 avatar Jan 11 '18 15:01 curio77

It doesn't support them in such a format, but the result of 1e5 (100,000) can be expressed as 10**5, where ** is the exponentiation operator. Internally, the operation is elided to be a single literal (100,000), and ends up the same as you'd expect.

I could envision adding support, but it would be a little awkward to do so at the current moment.

Knetic avatar Jun 18 '18 00:06 Knetic