Uncommon

Signed zero

Differentiating positive and negative zero

Signed zero

Uncommon card · No. 176190

Signed zero is zero with an associated sign. In ordinary arithmetic, the number 0 does not have a sign, and −0, +0 and 0 are three ways of writing the same number. However, in computing, some number representations allow for the existence of two zeros, often denoted by −0 (negative zero) and +0 (positive zero), regarded as equal by the numerical comparison operations but with possible different behaviors in particular operations. This occurs in the sign–magnitude and ones' complement signed number representations for integers, and in most floating-point number representations. The number 0 is typically expressed as +0. The IEEE 754 standard for floating-point arithmetic (presently used by most computers and programming languages that support floating-point numbers) requires both +0 and −0. Its arithmetic can be considered to model a variant of the extended real number line (the real numbers including additional numbers +∞ and −∞). In IEEE 754 arithmetic, ⁠1/−0⁠ = −∞ and ⁠1/+0⁠ = +∞; the...

Read on Wikipedia

Open boosters, collect cards and trade them. Free to play.

Play for free
Signed zero – Uncommon Wikipedia card | Wikiverse TCG