1

I'm trying to use the Float Module in Utop, however whenever I try to open it in Utop by doing this :

open Float;;
Error: Unbound module Float

I get this error

I'm using OCaml version 4.05.0, Utop version 2.2.0 (Utop is using 4.05.0 as well, just in case)

Anyway to solve this issue? Thanks.

TierTwo
  • 123
  • 2
  • 11

1 Answers1

4

The Float module was added in OCaml in version 4.07.0. So it is not available to your version.

You can either upgrade your version (if you are using opam it's fairly easy) or do without.

PatJ
  • 5,996
  • 1
  • 31
  • 37
  • I've been trying to find how to update OCaml using opam, didn't find anything. Could you provide a link or the command lines to do it please? – TierTwo Jan 01 '20 at 14:47
  • 1
    opam switch create 4.07.0 ; then eval $(opam env); then opam install utop – Pierre G. Jan 01 '20 at 15:05