google / google/googletest

Floating-point values not printed with enough precision

Open
#2,923 8 comments 1 reaction 1 assignee Claimed by @asoffer View on GitHub
Dominant language
C++
Stars
39.5k
Forks
10.9k
Avg merge
6d 13h
Merged PRs (30d)
1

Description

I recently had this failure on a CI platform:
```
C:/projects/arrow/cpp/src/arrow/util/decimal_test.cc(557): error: Expected equality of these values:
dec.ToReal(scale)
Which is: 1e-163
expected
Which is: 1e-163
```

Needless to say, this is not very informative :-) Floating-point values should be printed with enough precision to recreate the exact same values from the string representation, so as to diagnose issues.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.