Neat-Lang / neat

The Neat Language compiler. Early beta?
BSD 3-Clause "New" or "Revised" License
111 stars 9 forks source link

writing scientifico number #73

Closed unereal closed 3 months ago

unereal commented 3 months ago
    auto x = 1.23e5;
                 ^ comma expected
FeepingCreature commented 3 months ago

Implemented!

assert(1e2 == 100);
assert(1.0e2 == 100.0);
assert(1.5e2 == 150);
assert(1e-2 == 0.01);
assert(-1e-1-1 == -1.1);