SML# Document Version 4.0.0
26 Standard ML Basis Library

26.14 INTEGER

This provides primitives for signed integers.

signature INTEGER =
sig
  eqtype int
  val * : int * int -> int
  val + : int * int -> int
  val - : int * int -> int
  val < : int * int -> bool
  val <= : int * int -> bool
  val > : int * int -> bool
  val >= : int * int -> bool
  val abs : int -> int
  val compare : int * int -> order
  val div : int * int -> int
  val fmt : StringCvt.radix -> int -> string
  val fromInt : Int.int -> int
  val fromLarge : LargeInt.int -> int
  val fromString : string -> int option
  val max : int * int -> int
  val maxInt : int option
  val min : int * int -> int
  val minInt : int option
  val mod : int * int -> int
  val precision : Int.int option
  val quot : int * int -> int
  val rem : int * int -> int
  val sameSign : int * int -> bool
  val scan : StringCvt.radix -> (char, ’a) StringCvt.reader -> (int, ’a) StringCvt.reader
  val sign : int -> Int.int
  val toInt : int -> Int.int
  val toLarge : int -> LargeInt.int
  val toString : int -> string
  val ~ : int -> int
end

INTEGERシグネチャを実装.

Structures that implement the signature

  • Int : INTEGER

    type int = int

    Int32 and Position are structure replications of Int.

  • Int64 : INTEGER

    type int = int64

    LargeInt is a structure replication of Int64.

  • Int8 : INTEGER

    type int = int8