Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import decimal
- >>> decimal.Decimal('0.1250')
- Decimal('0.1250')
- >>> ctx = decimal.Context(prec=2, rounding=decimal.ROUND_HALF_UP)
- >>> ctx.create_decimal('0.1250')
- Decimal('0.13')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement