a guest Jun 27th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- from decimal import Decimal
- # First we take a float and convert it to a decimal
- x = Decimal(16.0/7)
- # Then we round it to 2 places
- output = round(x,4)
RAW Paste Data