Home

0e0

0e0 is a decimal floating-point literal used in many programming languages to express a number in scientific notation. It denotes zero multiplied by ten to the zero power, which equals 0.

In decimal scientific notation, numbers are written as mantissa times ten raised to an exponent. When the

In practice, most languages parse 0e0 as a floating-point zero. For example, in Python, 0e0 evaluates to

Zero as represented by a literal like 0e0 is distinct from nonzero zeros produced by other computations

See also: scientific notation, floating-point arithmetic, IEEE 754, signed zero.

mantissa
is
zero,
the
overall
value
is
zero
regardless
of
the
exponent,
so
forms
such
as
0e0,
0e5,
or
0eāˆ’12
all
represent
zero.
0.0;
in
JavaScript,
Number('0e0')
yields
0;
in
C
or
C++,
double
d
=
0e0;
results
in
0.0.
Some
environments
also
distinguish
a
signed
zero,
so
-0e0
could
yield
āˆ’0.0.
in
some
contexts;
the
sign
can
matter
in
floating-point
arithmetic
due
to
IEEE
754
conventions.
In
data
interchange
formats
such
as
JSON,
0e0
is
a
valid
numeric
literal
that
parses
to
zero.