-
In defiance of IEEE 754, Python's `math.log` raises an exception instead of returning infinities or NaNs when given zero or negative arguments, respectively. Numpy's `numpy.log` chooses a useless mid…
-
For `OrderedFloat`:
> NaN is sorted as greater than all other values and equal to itself, in contradiction with the IEEE standard.
IEEE standard requires different NaNs to be not equal, positive N…
-
[Posits](https://posithub.org/conga/2019/docs/13/1430-John-Introductory.pdf) are gaining [traction](https://posithub.org/conga/2019/programme) as a replacement and clean improvement over [IEEE 754](ht…
jfcg updated
2 months ago
-
Hello!
I’ve noticed that the floating-point operation core/plugin in VexRiscv, especially the commonly used floating-point adder and multiplier, seems quite stable now. Are there any plans to inte…
-
I've noticed a strange discrepancy with std::fma when handling the following edge case
> If z is NaN, and x * y is not 0 * Inf or Inf * 0, then NaN is returned
When compiling with clang_trunk th…
-
The sum on the page is displayed as:
![IEEE 754 sum](http://i.imgur.com/1Yry8km.png)
However, when you set the 52'nd bit to 1 you should add 2^(-1) not 2^(-0), so there is probably a -1 missing in th…
-
It is inaccurate to use a float for versions. `17.10` is not the same as `17.1`, but by using casting as a float they both appear as `17.1`.
-
# 为什么浮点数会有精度问题 · Why - beihai blog
IEEE 二进制浮点数算术标准(IEEE 754)是 20 世纪 80 年代以来最广泛使用的浮点数运算标准,为许多 CPU 与浮点运算器所采用。但这种浮点数表示方法也会带来一定的精度问题,我们将对这一问题进行探讨。
[https://wingsxdu.com/post/why/float-precision-problem…
-
Currently there are only two ways to cast floats to integers
1. `as` casts
2. `to_int_unchecked`
Adding explicit conversion functions could make casting a bit easier.
I would propose the functi…
-
I have discovered a class of `f64` for which `format!("{}", f)` rounds ties up to 3, rather than down to 2 as expected. Formatting those same numbers with fixed precision correctly rounds ties to even…