I did a code in python
total = 1.56 + 6
print("Total:", total)
the result is: Total: 7.5600000000000005
so the result is wrong. while the same calculation run correct in JavaScript
<script>
total = 1.56 + 6;
alert(a);
</script>
but JavaScript is also inaccuracy with the code below
<script>
a = 7.5600000000000005 * Math.pow(10, 15);
alert(a);
</script>
any one have a solution for it?