mirror of
https://github.com/bkaradzic/bx.git
synced 2026-10-27 19:15:40 +00:00
Fixed toString(double) not picking the closest digits for 17-digit values. (#474)
This commit is contained in:
@@ -421,6 +421,8 @@ TEST_CASE("toString double", "[string]")
|
||||
REQUIRE(testToString(2.225073858507201e-308, "2.225073858507201e-308") );
|
||||
REQUIRE(testToString(-79.39773355813419, "-79.39773355813419") );
|
||||
REQUIRE(testToString(-1.234567e-9, "-1.234567e-9") );
|
||||
REQUIRE(testToString(0.1 + 0.2, "0.30000000000000004") );
|
||||
REQUIRE(testToString(1.0000000000000002, "1.0000000000000002") );
|
||||
}
|
||||
|
||||
template<typename Ty>
|
||||
|
||||
Reference in New Issue
Block a user