Skip to content

BigDecimal#quo should accept a precision argument #214

@mrkn

Description

@mrkn
irb(main):007:0> BigDecimal(5).quo(229, 100)
(irb):7:in `quo': wrong number of arguments (given 2, expected 1) (ArgumentError)
        from (irb):7:in `<main>'
        from /home/mrkn/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/irb-1.3.8.pre.9/exe/irb:11:in `<top (required)>'
        from /home/mrkn/.rbenv/versions/3.0/bin/irb:23:in `load'
        from /home/mrkn/.rbenv/versions/3.0/bin/irb:23:in `<main>'

This should return a 100-precision BigDecimal instead of an exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions