fork download
  1. from decimal import Decimal
  2.  
  3. value = Decimal('10.53') % 1
  4. print(value) # 0.53
Success #stdin #stdout 0.02s 32880KB
stdin
Standard input is empty
stdout
0.53