Stefan Krah <stefan at bytereef.org> wrote: > Precision: 19 decimal digits > > float: > result: 3.1415926535897927 > time: 0.112874s > > cdecimal: > result: 3.141592653589793236 > time: 0.348100s > > decimal: > result: 3.141592653589793236 > time: 43.241220s Apparently there were concerns about the correctness of the result on some message board. To be clear: This is a *benchmark* designed to execute the same code for float, cdecimal and decimal. The *original* algorithm from the decimal docs uses a higher intermediate context precision. Since floats do not have such a context, this step was deliberately dropped from the benchmark. Stefan Krah
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4