27 Ağustos 2018 Pazartesi

IEEE754 ve Division By Infinity

Giriş
Açıklaması şöyle.
Any finite number divided by infinity results in zero under IEEE 754 (and therefore the same in most typical C++ implementations).

If the sign of the of numerator and denominator differ, the result will be negative zero, which is equal to zero
Örnek
Şöyle yaparız.
1./std::numeric_limits<double>::infinity()

Hiç yorum yok:

Yorum Gönder