Since in 1990 FPP was giving me 10^19...
Update. С тех пор, пишут, все изменилось.
Вот таблица посовременней: https://software.intel.com/sites/default/files/managed/ae/01/floating-point-reference-sheet.pdf
Juan4087654321:~ jgandhi$ python Python 2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import math >>> math.sin(math.pi) 1.2246467991473532e-16 >>> math.tan(math.pi / 2) 1.633123935319537e+16 >>> quit() Juan4087654321:~ jgandhi$ scala Welcome to Scala 2.12.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_92). Type in expressions for evaluation. Or try :help. scala> math.sin(math.Pi) res0: Double = 1.2246467991473532E-16 scala> math.tan(math.Pi / 2) res1: Double = 1.633123935319537E16
Update. С тех пор, пишут, все изменилось.
Вот таблица посовременней: https://software.intel.com/sites/default/files/managed/ae/01/floating-point-reference-sheet.pdf