SIGN IN SIGN UP

gh-121798: Add class method Decimal.from_number() (GH-121801)

It is an alternate constructor which only accepts a single numeric argument.
Unlike to Decimal.from_float() it accepts also Decimal.
Unlike to the standard constructor, it does not accept strings and tuples.
S
Serhiy Storchaka committed
5217328f93f599755bd70418952392c54f705a71
Parent: 4b358ee
Committed by GitHub <noreply@github.com> on 10/14/2024, 8:24:01 AM