Project

General

Profile

Actions

Bug #21814

closed

0.pow(2,-9999999999999999990) should be zero

Bug #21814: 0.pow(2,-9999999999999999990) should be zero

Added by matz (Yukihiro Matsumoto) 3 days ago. Updated 3 days ago.

Status:
Closed
Assignee:
-
Target version:
[ruby-core:124388]

Description

When I try 0.pow(2,-9999999999999999990), irb prints -9999999999999999990, but I think no matter what you divide zero by, the modulo should be zero.

Matz.

Actions

Also available in: PDF Atom