Functions
The functions Tower.js provides hue closely to the corresponding function in the Racket docs. To get more information about how a function behaves, click the link to see the corresponding Racket doc.
Arithmetic
add
subtract
multiply
divide
quotient
remainder
modulo
sqr
sqrt
integerSqrt
expt
exp
log
numerator
denominator
gcd
lcm
abs
floor
ceiling
round
Comparison
equals
eqv
(alias forequals
)greaterThan
greaterThanOrEqual
lessThan
lessThanOrEqual
Predicates
isNumber
isComplex
isReal
isRational
isInteger
isExactInteger
isExactNonNegativeInteger
isExactPositiveInteger
isInexactReal
isFlonum
(whether something is an unboxed Javascriptnumber
)isZero
isPositive
isNegative
isEven
isOdd
isExact
isInexact
isRacketNumber
(whether something is a Tower.js number)isFinite
(whether aRackerNumber
is finite)isNaN
isNegativeZero
(if an inexact number is-0.0
)
Trigonometry
Complex Numbers
Bitwise Operations
Misc.
numberToString
inexactToExact
exactToInexact