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

Portabilityportable
Stabilityexperimental
Maintainergithub.com/justinethier

Language.Scheme.Numerical

Description

This module implements the numerical tower.

Synopsis

Documentation

num2String :: [LispVal] -> ThrowsError LispVal

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

isFloatAnInteger :: LispVal -> Bool

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

unpackNum :: LispVal -> ThrowsError Integer

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