java - Decimal floating point literal syntax in javascript -
in java,
a decimal floating point literal(fpl) can either decimal fpl or hexadecimal fpl.
decimal fpl consists of,  <digits>.<digits><exponentpart><f|f|d|d>,  <exponentpart> consists of <e|e><+|-><digits> (the sign optional).
hexadecimal fpl consists of, <0x|0x><hexdigits><.><hexdigits><binaryexponent><f|f|d|d>, <binaryexponent> is, <p|p><+|-><digits> (sign optional).
what fpl notation in javascript?
note: beginner in js
in javascript there no formal type floating-point number there number type. number can have fraction or not.
from ecmascript 2015 standard
decimalliteral ::
decimalintegerliteral . decimaldigits(opt) exponentpart(opt) . decimaldigits exponentpart(opt) decimalintegerliteral exponentpart(opt)
Comments
Post a Comment