O'Reilly logo
  • Yan Ren thinks this is interesting:

differ from 3

From

Cover of Scala for the Impatient, Second Edition

Note

scala> scala.math.sqrt(3) res7: Double = 1.7320508075688772

scala> scala.math.pow(res7, 2) res8: Double = 2.9999999999999996