Literals/Floating point: Difference between revisions

Content deleted Content added
Added Fennel.
Hakank (talk | contribs)
Line 1,088: Line 1,088:
EXPONENT_DNUM [+-]?(({LNUM} | {DNUM}) [eE][+-]? {LNUM})
EXPONENT_DNUM [+-]?(({LNUM} | {DNUM}) [eE][+-]? {LNUM})
</pre>
</pre>

=={{header|Picat}}==
<pre>2.0 % normal float. Must have a decimal after the decimal point
-2.1
2.01E3 % exponent can be E of e
2.01e3
2.01E-3
2.01e-3
1_000_123.123_456 % underscores can be used for clarity
</pre>

Precision for floats is 15. (Integers has arbitrary precision.)



=={{header|PicoLisp}}==
=={{header|PicoLisp}}==