StackOverflow Questions for Tag: negative-zero

tenfour
tenfour

Reputation: 36896

Does float have a negative zero? (-0f)

Score: 50

Views: 28177

Answers: 10

Read More
swift-lynx
swift-lynx

Reputation: 3765

How can I separate negative zero from positive zero?

Score: 6

Views: 1864

Answers: 2

Read More
Ivan
Ivan

Reputation: 4783

How to convert −0 to string with sign preserved?

Score: 6

Views: 489

Answers: 4

Read More
azoundria
azoundria

Reputation: 1025

Why does −0 convert to the string "0"?

Score: -2

Views: 161

Answers: 1

Read More
Rocinante8
Rocinante8

Reputation: 13

How to make a constexpr that equals -0.0

Score: 1

Views: 49

Answers: 0

Read More

can you store negative zero in MongoDB?

Score: -1

Views: 169

Answers: 1

Read More
se0808
se0808

Reputation: 596

What is (+0)+(-0) by IEEE floating point standard?

Score: 16

Views: 3280

Answers: 4

Read More
Mr T.
Mr T.

Reputation: 4518

Long Representation vs Double representation of positive and negative zero in java

Score: 0

Views: 536

Answers: 2

Read More
Ken Russell
Ken Russell

Reputation: 2378

Why do floating-point numbers have signed zeros?

Score: 79

Views: 6869

Answers: 4

Read More
FPK
FPK

Reputation: 2098

Why does clang not optimize away adding 0.0 to a floating-point number?

Score: 1

Views: 201

Answers: 0

Read More
Vorac
Vorac

Reputation: 9124

Why does MSVS not optimize away +0?

Score: 67

Views: 4642

Answers: 2

Read More
withkittens
withkittens

Reputation: 171

In IEEE 754, why does adding negative zero result in a no-op but adding positive zero does not?

Score: 5

Views: 589

Answers: 1

Read More
Apoorva Chikara
Apoorva Chikara

Reputation: 8773

Why does Math.min() return -0 from [+0, 0, -0]

Score: 59

Views: 4613

Answers: 4

Read More
J. Mini
J. Mini

Reputation: 1610

Does R have "negative zero"?

Score: 4

Views: 560

Answers: 2

Read More
Mahmoud
Mahmoud

Reputation: 571

Casting '0' to double precision, then multiple by -1 will result in negative zero

Score: 0

Views: 892

Answers: 2

Read More
Adam
Adam

Reputation: 905

Negative zero int

Score: 1

Views: 415

Answers: 2

Read More
Farrell
Farrell

Reputation: 13

When working with financial data in Google Sheets, why are some of my "0.00" values reporting as negative or positive?

Score: 0

Views: 403

Answers: 1

Read More

Why do we have 0.0 and -0.0 in Ruby?

Score: 72

Views: 8445

Answers: 4

Read More
user9723177
user9723177

Reputation:

Is it possible to test whether a type supports negative zero in C++ at compile time?

Score: 8

Views: 680

Answers: 4

Read More
Aaditya Sharma
Aaditya Sharma

Reputation: 3910

Any examples / scenarios where negative zero in JavaScript make a big difference?

Score: 0

Views: 110

Answers: 2

Read More
PreviousPage 1Next