SpinTheMic
Pro

Interview practice question

Totals off by a few paise

Data Engineering · Python · Beginner

Finance says the totals from your Python script are off by a few paise compared to their system. What's likely wrong?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Floats were used for money, causing rounding errors.
  • Different rounding rules, like half-up vs banker's rounding.
  • Rounding at line level vs total level gives different results.
  • Use Decimal with explicit rounding.
  • Agree the rounding rule with finance.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics