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

CopyrightJustin Ethier
LicenseMIT (see LICENSE in the distribution)
Maintainergithub.com/justinethier
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

Language.Scheme.Numerical

Description

This module implements the numerical tower.

Synopsis

Documentation

num2String :: [LispVal] -> ThrowsError LispVal Source

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

isFloatAnInteger :: LispVal -> Bool Source

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

unpackNum :: LispVal -> ThrowsError Integer Source

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