Skip to content
Snippets Groups Projects
Commit ff7b2730 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

Limit the number of decimals

parent 9e42a915
No related branches found
No related tags found
No related merge requests found
...@@ -167,7 +167,7 @@ let rec pp fmt v = let open Format in ...@@ -167,7 +167,7 @@ let rec pp fmt v = let open Format in
| `Bool b -> pp_print_bool fmt b | `Bool b -> pp_print_bool fmt b
| `String s -> fprintf fmt "%S" s | `String s -> fprintf fmt "%S" s
| `Int a -> pp_print_int fmt a | `Int a -> pp_print_int fmt a
| `Float f -> Format.fprintf fmt "%g" f | `Float f -> Format.fprintf fmt "%.3g" f
| `List [] -> pp_print_string fmt "[]" | `List [] -> pp_print_string fmt "[]"
| `List (e::es) -> | `List (e::es) ->
Format.fprintf fmt "@[<hov 2>[ %a" pp e ; Format.fprintf fmt "@[<hov 2>[ %a" pp e ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment