moduleocamlutop

Unable to use Float module in Utop


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.


Solution

  • 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.