This expression is int, but the expected expression is [`Deprecated_use_float_module]
I am using Jane Streets Core library and I am trying to do a simple operation float_of_int
. I am getting the following error:
This expression has type int but an expression was expected of type
[ Deprecated_use_float_module ]
How can I solve this? For example, inside the interpreter utop
:
utop # open Core.Std;;
utop # float_of_int 1;;
Error: This expression has type int but an expression was expected of type [ Deprecated_use_float_module ]
Thank!
Edit: I also looked at the Float module here , which doesn't seem to have anything. If I just don't know how to properly manage the documentation, I'm not sure what to do.
source to share