1
0
forked from Mirror/wren

Support positive sign in scientific notation (#706)

* Support positive sign in scientific notation
* Add exponent with positive sign to docs
This commit is contained in:
Kyle McLamb
2020-06-14 00:37:30 -04:00
committed by GitHub
parent f3493d0499
commit 7983082b71
4 changed files with 14 additions and 5 deletions

View File

@ -7,3 +7,4 @@ System.print(2.55e-2 is Num) // expect: true
System.print(x is Num) // expect: true
System.print(-2.55e2) // expect: -255
System.print(-25500e-2) // expect: -255
System.print(2.55e+2) // expect: 255

View File

@ -0,0 +1 @@
var x = 1e+-01 // expect error