+ 1

Why does 3.0**3.0 gives 26.9999999989, not 27.0?

9th Feb 2017, 2:57 PM
Nicolas Pitzho
Nicolas Pitzho - avatar
9 ответов
+ 15
@Kenyatta Madison Thanks for your explication. I was still wondering why did he get such a strange result.
9th Feb 2017, 4:45 PM
Gami
Gami - avatar
+ 14
Maybe you've done something wrong. I just checked in Python and it gave 27.0.
9th Feb 2017, 4:06 PM
Gami
Gami - avatar
+ 2
mine came 27.0 only
10th Feb 2017, 6:40 PM
Ravi Chaudhary
+ 1
it's the same number at all
9th Feb 2017, 3:31 PM
Tomeu
Tomeu - avatar
+ 1
@Tomeu, but why are results differ?
9th Feb 2017, 3:35 PM
Nicolas Pitzho
Nicolas Pitzho - avatar
+ 1
tried in another implementation, results were equal. thanks!
9th Feb 2017, 4:26 PM
Nicolas Pitzho
Nicolas Pitzho - avatar
0
my came 27.0 yeah
14th Feb 2017, 6:45 AM
Pranit Kokate
Pranit Kokate - avatar