Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python2
- ```
- >>> round(2.675, 2)
- 2.67
- >>> round(Decimal('2.675'), 2)
- 2.67
- ```
- Python3
- ```
- >>> round(2.675, 2)
- 2.67
- >>> round(Decimal('2.675'), 2)
- Decimal('2.68')
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement