Double

is the default floating point number type.

*

external

(Fn [Double, Double] Double)

+

external

(Fn [Double, Double] Double)

-

external

(Fn [Double, Double] Double)

/

external

(Fn [Double, Double] Double)

<

external

(Fn [Double, Double] Bool)

=

external

(Fn [Double, Double] Bool)

>

external

(Fn [Double, Double] Bool)

MAX

external

Double

abs

external

(Fn [Double] Double)

acos

external

(Fn [Double] Double)

add-ref

defn

(Fn [(Ref Double a), (Ref Double b)] Double)

                        (add-ref x y)
                    

approx

defn

(Fn [a, a] Bool)

                        (approx x y)
                    

checks whether x and y are approximately equal.

The margin of error is 0.00001.

asin

external

(Fn [Double] Double)

atan

external

(Fn [Double] Double)

atan2

external

(Fn [Double, Double] Double)

blit

defn

(Fn [Double] Double)

                        (blit x)
                    

ceil

external

(Fn [Double] Double)

copy

external

(Fn [(Ref Double a)] Double)

cos

external

(Fn [Double] Double)

cosh

external

(Fn [Double] Double)

dec

defn

(Fn [Double] Double)

                        (dec x)
                    

e

def

Double

exp

external

(Fn [Double] Double)

floor

external

(Fn [Double] Double)

format

external

(Fn [(Ref String a), Double] String)

frexp

external

(Fn [Double, (Ref Int a)] Double)

from-float

external

(Fn [Float] Double)

from-int

external

(Fn [Int] Double)

from-long

external

(Fn [Long] Double)

from-string

defn

(Fn [(Ref String a)] (Maybe Double))

                        (from-string s)
                    

hash

defn

(Fn [(Ref Double a)] Int)

                        (hash k)
                    

inc

defn

(Fn [Double] Double)

                        (inc x)
                    

ldexp

external

(Fn [Double, Int] Double)

log

external

(Fn [Double] Double)

log10

external

(Fn [Double] Double)

mod

external

(Fn [Double, Double] Double)

modf

external

(Fn [Double, (Ref Double a)] Double)

neg

external

(Fn [Double] Double)

pi

def

Double

pow

external

(Fn [Double, Double] Double)

prn

defn

(Fn [Double] String)

                        (prn x)
                    

random

defn

(Fn [] Double)

                        (random)
                    

random-between

defn

(Fn [Double, Double] Double)

                        (random-between lower upper)
                    

sin

external

(Fn [Double] Double)

sinh

external

(Fn [Double] Double)

sqrt

external

(Fn [Double] Double)

str

external

(Fn [Double] String)

tan

external

(Fn [Double] Double)

tanh

external

(Fn [Double] Double)

to-bytes

external

(Fn [Double] Long)

to-float

external

(Fn [Double] Float)

to-int

external

(Fn [Double] Int)

to-long

external

(Fn [Double] Long)

zero

defn

(Fn [] Double)

                        (zero)
                    

returns the value 0.0.