husk-scheme-3.6.2: R5RS Scheme interpreter, compiler, and library.

Portabilityportable
Stabilityexperimental
Maintainergithub.com/justinethier
Safe HaskellSafe-Inferred

Language.Scheme.Numerical

Description

This module implements the numerical tower.

Synopsis

Documentation

num2String :: [LispVal] -> ThrowsError LispValSource

Convert a number to a string; radix is optional, defaults to base 10

isFloatAnInteger :: LispVal -> BoolSource

A utility function to determine if given value is a floating point number representing an whole number (integer).

unpackNum :: LispVal -> ThrowsError IntegerSource

Extract an integer from the given value, throwing a type error if the wrong type is passed.