File: creal_pp.ml

package info (click to toggle)
ocamlcreal 0.7-4
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 368 kB
  • ctags: 754
  • sloc: ml: 2,699; ansic: 1,067; sh: 113; makefile: 46
file content (8 lines) | stat: -rw-r--r-- 150 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8

open Format

let precision = ref 20;;

let pp x = print_string (try Creal.to_string x !precision 
			 with e -> "Error: " ^ Printexc.to_string e);;