Skip to content

Commit ef51576

Browse files
committed
replace abs with fabs
1 parent 8688945 commit ef51576

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/string_tools.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ std::string format_number_single(double x, int digits, int signif, bool int_as_d
697697
}
698698

699699
// decimal part
700-
bool do_digits = int_as_double || abs(x - round(x)) > 1e-013;
700+
bool do_digits = int_as_double || fabs(x - round(x)) > 1e-013;
701701
if(do_digits){
702702

703703
if(digits > 0 || n_signif < signif){

0 commit comments

Comments
 (0)