-
4 Comments
Show
1 older comment
Angelo Gelmini
on 7 Nov 2017
I am not able to figure out why the solutions of my code to test 8 and 9 are wrong.
My wrong results:
- test 8 -> '1250000041666667776'
- test 9 -> '13107200170666672128'
Heiko
on 15 Nov 2017
I get precisely the same results as Angelo...
Mehmet OZC
on 16 Nov 2017
Angelo and Heiko, your solutions are working to a degree. However to obtain exact results on big numbers you have to use different tools. You can search for uint64 and bigdecimal. Hope it helps.
Hans Kramer
on 3 Dec 2018
Thanks for the tip with uint64.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!