Skip to content

PARSE-POSITIVE-REAL-NUMBER allows for 0 #18

@phoe

Description

@phoe
CL-USER> (parse-number:parse-positive-real-number "0")
0
CL-USER> (alexandria:positive-real-p 0)
NIL

I know that this most likely won't get "fixed" (changing the function to parse-non-negative-real-number won't work, and neither will causing "0" to signal an error) due to widespread use of parse-number, but can this warrant at least a remark in docstring as a kludge?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions