[Jewett, Jim J] #- This is effectively saying #- #- (1) Create a decimal using the default context. #- (2) Change the context to my custom context. #- (3) Perform various rounding and scaling operations. #- (4) Change the context back to the default. #- #- vs #- #- (1) Create a decimal using my custom context. #- #- The four-step procedure may (or may not) be done just as #- efficiently under the covers, but it is ugly. #- #- Is there any reason why input and output should be the only #- operations that do not honor an optional local context? I didn't reviewed all the mails to write down the community will, but as far I recall, you *could* use context in creation time. I think that still is not clear if to use... Decimal(number, [context]) or Decimal(number) Decimal.using_context(number, [context]) ...(I prefer the laters) but I think you could use it. But: There is no such thing as "scale" in the context. . Facundo
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