PARSE-NUMBER

parse-number accepts an arbitrary string and attempt to parse it into one of the standard Common Lisp number types, if possible, or else it signals an error of type invalid-number.

Exported symbols:

Function PARSE-NUMBER (string &key start end radix)

Function PARSE-REAL-NUMBER (string &key start end radix)

Function PARSE-POSITIVE-REAL-NUMBER (string &key start end radix)

Condition INVALID-NUMBER

Reader INVALID-NUMBER-VALUE
Reader INVALID-NUMBER-REASON

To test use: (asdf:oos 'asdf:test-op :parse-number)

Current homepage

Download ASDF package from http://common-lisp.net/~sionescu/files/parse-number-1.2.tar.gz

An RPM is available at http://yum.octopodial-chrome.com/packages/cl-parse-number

It does not handle thousands separators, so if you use this package, you might think about adding that


data format?

This page is linked from: Common Lisp Utilities   philip-jose  

CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively