Retour a %.12g dans string_of_float (PR#1778)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5755 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
2f8d5ba5f6
commit
8938acb2ef
|
@ -196,7 +196,7 @@ let valid_float_lexem s =
|
|||
loop 0
|
||||
;;
|
||||
|
||||
let string_of_float f = valid_float_lexem (format_float "%.17g" f);;
|
||||
let string_of_float f = valid_float_lexem (format_float "%.12g" f);;
|
||||
|
||||
external float_of_string : string -> float = "float_of_string"
|
||||
|
||||
|
|
Loading…
Reference in New Issue