CL-USER> (exp 1)2.7182817
Why? This should be 2.7182818 (rounded from 2.7182818284590452353602874713526624977572470936999595749669 ...)
SBCL 1.0.29.11.debian
This is a rounding error inherent in the IEEE single-threaded format.
CL-USER> (exp 1.0d0) 2.718281828459045d0
Learn more about floating point arithmetic and its "problems" in this classic article (PDF):
What Every Computer Scientist Should Know About Floating-Point Arithmetic
Source: https://habr.com/ru/post/1336636/More articles:How to create specialized collectors for semantic layout in rails? - ruby | fooobar.comHow to use update source trigger for Wpf Combobox, which is editable? - wpfShow pdf inside silverlight application. PDF for XAML - pdfCUDA: built-in for the core of the loop - c ++IPhone app update in background - iosTry using the app for the Django app? - djangoWordpress theme, adding an extra menu - wordpressTrade-offs of using join table and type - database-designHow to use lxml to find element text in an XHTML document - pythonUnable to play back .wav file using MediaPlayer - javaAll Articles