package scipy

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type tag = [
  1. | `IntFormat
]
type t = [ `IntFormat | `Object ] Obj.t
val of_pyobject : Py.Object.t -> t
val to_pyobject : [> tag ] Obj.t -> Py.Object.t
val create : ?min:Py.Object.t -> ?repeat:Py.Object.t -> width:Py.Object.t -> unit -> t

None

val from_number : ?min:int -> n:int -> [> tag ] Obj.t -> Py.Object.t

Given an integer, returns a 'reasonable' IntFormat instance to represent any number between 0 and n if n > 0, -n and n if n < 0

Parameters ---------- n : int max number one wants to be able to represent min : int minimum number of characters to use for the format

Returns ------- res : IntFormat IntFormat instance with reasonable (see Notes) computed width

Notes ----- Reasonable should be understood as the minimal string length necessary without losing precision. For example, IntFormat.from_number(1) will return an IntFormat instance of width 2, so that any 0 and 1 may be represented as 1-character strings without loss of information.

val to_string : t -> string

Print the object to a human-readable representation.

val show : t -> string

Print the object to a human-readable representation.

val pp : Format.formatter -> t -> unit

Pretty-print the object to a formatter.

OCaml

Innovation. Community. Security.