+ 1

Can x*x (double) be negative?

visual studio c++11

4th Dec 2017, 11:15 PM
Гриша Ахременко
Гриша Ахременко - avatar
3 ответов
+ 1
Why not?
4th Dec 2017, 11:51 PM
stKhaDgar
stKhaDgar - avatar
+ 1
overflow. when two positive plus,can be turned。two negative are the same
5th Dec 2017, 2:05 AM
meok
0
doubles overflow? it seems that it happen if x is so small, 0<x<1e-9
5th Dec 2017, 10:12 AM
Гриша Ахременко
Гриша Ахременко - avatar