egison-2.4.6: An Interpreter and Compiler for the Programming Language Egison

Safe HaskellSafe-Inferred

Language.Egison.Numerical

Synopsis

Documentation

isEgisonEOF :: [EgisonVal] -> ThrowsError EgisonValSource

Convert a float to a string; radix is optional, defaults to base 10 floatToString :: [EgisonVal] -> IOThrowsError EgisonVal floatToString [(Float n)] = liftIO $ stringToCharCollection $ show n floatToString [x] = throwError $ TypeMismatch number x floatToString badArgList = throwError $ NumArgs 1 badArgList