Actions
Bug #1828
closed1/-20 == -1 ?
Description
=begin
Dividing positive number by negative number returns incorrect value.
irb(main):001:0> 1/-20
=> -1
irb(main):002:0> 30/-20
=> -2
irb(main):003:0> 20/-30
=> -1
=end
Updated by darix (Marcus Rückert) over 15 years ago
=begin
100/-20 => -5
1/-20.0 => -0.05
sounds to me like an invalid bug report.
=end
Updated by nobu (Nobuyoshi Nakada) over 15 years ago
- Status changed from Open to Rejected
=begin
=end
Actions
Like0
Like0Like0