RosettaCodeData/Task/Literals-Floating-point/OCaml/literals-floating-point.ocaml
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

6 lines
169 B
Text

0.5
1.0
1. (* it is not possible to write only "1" because OCaml is strongly typed,
and this would be interpreted as an integer *)
1e-10
3.14159_26535_89793