Home

0e3

0e3 is a numeric literal used in many programming languages and calculators to denote a floating-point number in scientific notation. The notation consists of a significand, followed by the letter e (or E) and an exponent indicating the power of ten. In 0e3, the significand is 0 and the exponent is 3, so the value is 0 × 10^3 = 0.

In practice, 0e3 is treated as a floating-point value equal to zero. For example, in Python, evaluating

Important details and common questions: the e denotes a base-10 exponent, not Euler's number e. The notation

0e3
yields
0.0
as
a
float.
In
JavaScript,
0e3
is
interpreted
as
a
number
equal
to
0.
The
same
applies
in
C,
C++,
and
Java:
the
literal
0e3
is
valid
and
represents
0.0
in
floating-point
form.
Note
that
some
environments
may
distinguish
a
sign
for
zero,
so
expressions
like
-0e3
can
yield
-0.0
in
languages
that
preserve
the
sign
of
zero.
is
generally
case-insensitive,
so
0e3,
0E3,
and
0e+3
are
equivalent
in
value.
Because
the
significand
is
zero,
any
exponent
applied
to
0
yields
zero,
including
negative
exponents
(0e-3
equals
0.0).
This
makes
0e3
a
convenient,
concise
way
to
express
zero
in
scientific
notation,
though
its
value
is
the
same
as
writing
0
or
0.0.