Greg Ewing wrote: > Nick Coghlan wrote: > >> Note that Antoine's point was that float("0.1") and >> Decimal.from_float(0.1) should compare equal. > > That would mean that Decimal("0.1") != float("0.1"), which might be > surprising to someone who didn't realise they were mixing floats > and decimals. That's fine - binary floats *are* surprising. That's why Decimal exists in the first place. Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia ---------------------------------------------------------------
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