Beginner Ruby
Q27 / 100

What does "1.0 / 3" return in Ruby?

Correct! Well done.

Incorrect.

The correct answer is C) A floating-point approximation like 0.3333333333333333

C

Correct Answer

A floating-point approximation like 0.3333333333333333

Explanation

Dividing a Float by an Integer yields a Float result; only Integer/Integer division truncates to an integer.

Progress
27/100