from decimal import Decimal# with binary floating pointsprint(divmod(356, 3.56))# with arbitrary roundingsprint(Decimal('356') % Decimal('3.56'))
Standard input is empty
(99.0, 3.5599999999999947) 0.00
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!