Project

General

Profile

Bug #12065

problem with multiplication 2 numbers

Added by valdambrini.andrea (Andrea Valdambrini) over 4 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
[ruby-core:73778]

Description

Hi,
why do this ?

irb(main):006:0> 15.1*100
=> 1510.0 -----> OK

irb(main):008:0> 671.12*100
=> 67112.0 -----> OK

irb(main):007:0> 67.1*100
=> 6709.999999999999 -----> KO ???????

What i wrong

Tks for the interesting

Updated by shyouhei (Shyouhei Urabe) over 4 years ago

This is a FAQ. Read the FAQ section here https://bugs.ruby-lang.org/

Updated by hsbt (Hiroshi SHIBATA) over 4 years ago

  • Status changed from Open to Rejected

Also available in: Atom PDF