-
I am trying to implement the following trait as follows:
```rust
// Shift left is False, shift right is True
pub trait NormaliseInner {
type Output;
}
impl NormaliseInner for F32
where
…
-
conversion of double to string isn't consistent in JDK21 for some specific values of double:
![image](https://github.com/user-attachments/assets/b6a681bb-7487-4b1c-bee2-c94d79599dc1)
logic is di…
-
On x86 (32bit) targets that cannot use SSE2 instructions (this includes the tier 1 i686 targets with flags that disable SSE2 support, such as `-C target-cpu=pentium`), floating-point operation can ret…
-
[Enter feedback here]
Tested on .net core runtime 3.1.10
double num = 1234.5;
var str = num.ToString("G4"); (1234, the rounding is using MidpointRounding.ToEven which is the expected behavior)
…
-
* I would suggest to have a flag that enforces standard compliant JSON on output and raise an exception if not.
Users that care about performance can keep that flag off, but users that care about cor…
-
I found that in version 0.4.5 for complex numbers close to 1 the implementation of the complex logarithm `ln` looses many digits of precision:
~~~.rs
use num::complex::Complex;
fn main() {
l…
-
Your article is extremely thorough. You touched on a few of these points below, but maybe there's something interesting here below. This is not really an "issue", more of a comment.
```
# Thing…
-
The following simple (C) program can violate the assertion, because NaN!=NaN:
```
int main()
{
double x = __VERIFIER_nondet_double();
assert(x==x);
}
```
Yet the (correctly translated) CFA…
-
Given the following sample benchmark program, the call to `eministat:x` will cause an error by trying to invoke `lists:seq/2` with an invalid range. This happens in our own benchmarks, although somet…
-
As per the JVM specification https://docs.oracle.com/javase/specs/jvms/se10/html/jvms-2.html#jvms-2.8.1, SIGFPE should be consumed by the JVM even if trap is enabled. Hotspot handles SIGFPE and provid…