riolet / rix

Rix language combines the power of C language and the convenience of a high level language
GNU General Public License v3.0
729 stars 27 forks source link

Floating point exponent notation #8

Closed JoePelz closed 8 years ago

JoePelz commented 9 years ago

the following notations are unrecognized by ritchie:

f1 = 1.0e3
f2 = 2.0E4
f3 = 3.0E-6
f4 = 4.0e+2

Expected results are:

f1 = 1000.000000
f2 = 20000.000000
f3 = 0.000003
f4 = 400.000000