package pyml

  1. Overview
  2. Docs

Interface for Python values of type Float.

val check : Object.t -> bool

check o returns true if o is a Python float.

val of_float : float -> Object.t

of_float f returns the Python long with the value f. Wrapper for PyFloat_AsDouble.

val to_float : Object.t -> float

to_float o returns the floating-point vale stored in o. A Python exception (Py.E _) is raised if o is not a float. Wrapper for PyFloat_FromDouble.

OCaml

Innovation. Community. Security.