Skip to content

BigDecimal.new("5-6").to_i returns 0 on 9k where 1.7 and MRI returns 5 #3527

@kml

Description

@kml
2.2.3p173
>> BigDecimal.new("5-6").to_i
=> 5

1.7.19
>> BigDecimal.new("5-6").to_i
=> 5

9.0.4.0
>> BigDecimal.new("5-6").to_i
=> 0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions