Skip to content

number->string fails for Floats #5

@byteit101

Description

@byteit101

(number->string 1.2) fails by complaining that to_s expect 0 args, but 1 was given. This is because Ruby's Float#to_s doesn't support the radix arg, as Fixnum#to_s does. I have a partial fix in byteit101@d8b26cc that allows default base 10 to work for floats, but punts on the full float radix support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions