from decimal import Decimal
# with binary floating points
print(divmod(356, 3.56))
# with arbitrary roundings
print(Decimal('356') % Decimal('3.56'))