Project

General

Profile

This project is closed and read-only.

Actions

Bug #141

closed

Rational#power2 loops when the argument is 0

Bug #141: Rational#power2 loops when the argument is 0

Added by krsh (Gianluigi Spagnuolo) over 18 years ago. Updated over 15 years ago.

Status:
Closed
Target version:
-
ruby -v:
[ruby-core:17226]

Description

=begin
Rational#power2, when passed Rational, loop if the argument is 0.

For example:

Rational.new!(3, 4).power2(Rational.new!(0, 3))
=end

Actions

Also available in: PDF Atom