package pyml

  1. Overview
  2. Docs

Interface for Python values of type Number.

val absolute : Object.t -> Object.t

Wrapper for PyNumber_Absolute

val add : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Add

val number_and : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_And

val divmod : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Divmod

val float : Object.t -> Object.t

Wrapper for PyNumber_Float

val floor_divide : Object.t -> Object.t -> Object.t
val in_place_add : Object.t -> Object.t -> Object.t
val in_place_and : Object.t -> Object.t -> Object.t
val in_place_floor_divide : Object.t -> Object.t -> Object.t
val in_place_lshift : Object.t -> Object.t -> Object.t
val in_place_multiply : Object.t -> Object.t -> Object.t
val in_place_or : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_InPlaceOr

val in_place_power : ?modulo:Object.t -> Object.t -> Object.t -> Object.t
val in_place_remainder : Object.t -> Object.t -> Object.t
val in_place_rshift : Object.t -> Object.t -> Object.t
val in_place_subtract : Object.t -> Object.t -> Object.t
val in_place_true_divide : Object.t -> Object.t -> Object.t
val in_place_xor : Object.t -> Object.t -> Object.t
val invert : Object.t -> Object.t

Wrapper for PyNumber_Invert

val lshift : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Lshift

val multiply : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Multiply

val negative : Object.t -> Object.t

Wrapper for PyNumber_Negative

val number_or : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Or

val positive : Object.t -> Object.t

Wrapper for PyNumber_Positive

val power : ?modulo:Object.t -> Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Power

val remainder : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Remainder

val rshift : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Rshift

val subtract : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Subtract

val true_divide : Object.t -> Object.t -> Object.t
val number_xor : Object.t -> Object.t -> Object.t

Wrapper for PyNumber_Xor

val check : Object.t -> bool

check v returns true if v is a Python float or a Python integer/long.

val to_float : Object.t -> float

to_float v returns the floating-point value equal to the Python integer or Python float v. Raises a failure (Failure _) if v is neither a float nor an integer.

val of_int : int -> Object.t

Synonym of Py.Int.of_int

val of_int64 : int64 -> Object.t

Synonym of Py.Int.of_int64

val of_float : float -> Object.t
val (+) : Object.t -> Object.t -> Object.t

Synomym of add

val (-) : Object.t -> Object.t -> Object.t

Synomym of subtract

val (*) : Object.t -> Object.t -> Object.t

Synomym of multiply

val (/) : Object.t -> Object.t -> Object.t

Synomym of true_divide

val (**) : Object.t -> Object.t -> Object.t

Synomym of power

val (~-) : Object.t -> Object.t

Synomym of negative

val (land) : Object.t -> Object.t -> Object.t

Synomym of number_and

val (lor) : Object.t -> Object.t -> Object.t

Synomym of number_or

val (lxor) : Object.t -> Object.t -> Object.t

Synomym of number_xor

val (lsl) : Object.t -> Object.t -> Object.t

Synomym of lshift

val (lsr) : Object.t -> Object.t -> Object.t

Synomym of rshift