Project

General

Profile

Actions

Bug #12065

closed

problem with multiplication 2 numbers

Added by valdambrini.andrea (Andrea Valdambrini) almost 9 years ago. Updated almost 9 years ago.

Status:
Rejected
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

Actions

Also available in: Atom PDF

Like0
Like0Like0