Project

General

Profile

Actions

Bug #8514

closed

Rounding off error

Added by manojtc (Jonam Rakesardnahc) about 12 years ago. Updated about 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0p195 (2013-05-14) [i386-mingw32]
[ruby-core:55439]

Description

The expression (10/3.0) returns "3.3333333333333335". It should actually be "3.3333333333333333".

The expression (11/3.0) returns "3.6666666666666665". It should actually be "3.6666666666666667".

(13/3) is evaluated correctly though.

Actions

Also available in: Atom PDF

Like0
Like0Like0