0

I typed the code below in scala console and get the return:

scala> 1.0F to 5.0F by 1.3F
res10: scala.collection.immutable.NumericRange[Float] = NumericRange(1.0, 2.3, 3.6, 4.8999996)

why the ret is NumericRange(1.0, 2.3, 3.6, 4.8999996) instead of NumericRange(1.0, 2.3, 3.6, 4.9) ?

jub0bs
  • 60,866
  • 25
  • 183
  • 186
zwb
  • 886
  • 2
  • 8
  • 21

0 Answers0