Capgemini Interview Question

how to manage fraction values