package server-reason-react

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file Belt_Int.ml

1
2
3
4
5
6
7
8
9
10
11
external toFloat : int -> float = "%identity"
external fromFloat : float -> int = "%intoffloat"

let fromString = int_of_string
let fromString i = try Some (int_of_string i) with _ -> None
let toString = string_of_int

external ( + ) : int -> int -> int = "%addint"
external ( - ) : int -> int -> int = "%subint"
external ( * ) : int -> int -> int = "%mulint"
external ( / ) : int -> int -> int = "%divint"
OCaml

Innovation. Community. Security.