Skip to content

Commit ca20b14

Browse files
Remove special case of limit for double printing
The case of numeric limit for floating point does not imply that the decimal version is precise enough. An example of that is 0x1p-1022 which would be printed as 2.22507e-308 in decimal but this is not precise enough.
1 parent 5d80ef9 commit ca20b14

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

jbmc/src/java_bytecode/expr2java.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ std::string floating_point_to_java_string(float_type value)
7979
return raw_decimal;
8080
}();
8181
const bool is_lossless = [&] {
82-
if(value == std::numeric_limits<float_type>::min())
83-
return true;
8482
try
8583
{
8684
return std::stod(decimal) == value;

0 commit comments

Comments
 (0)