package core_bench

  1. Overview
  2. Docs

Source file to_string.ml

1
2
3
4
5
6
7
8
(** A module internal to [Core_bench]. Please look at {!Bench}. *)
open Core

let float_to_string = Float.to_string_hum ~decimals:2

let float_opt_to_string = function
  | Some v -> float_to_string v
  | None -> ""