3 ms·
That's how I learned about COBOL's behavior. I was on a consulting gig with some COBOL programmers that had been sent to a learn-java-in-21-days course. When I
by cratermoon 6y ago
That's how I learned about COBOL's behavior. I was on a consulting gig with some COBOL programmers that had been sent to a learn-java-in-21-days course. When I arrived I found they had used float for money, because they didn't know any better. We eventually switched over to BigDecimal, but not until the staff were convinced by continuing problems with the results. Now I just talk about Muller's Recurrence
https://scipython.com/blog/mullers-recurrence/ https://scipython.com/blog/mullers-recurrence/
https://latkin.org/blog/2014/11/22/mullers-recurrence-roundoff-gone-wrong/ https://latkin.org/blog/2014/11/22/mullers-recurrence-roundo...
And show people https://0.30000000000000004.com/ https://0.30000000000000004.com/
Also see https://stackoverflow.com/questions/30215023/how-cobol-handles-division-rounding-by-default/30215718#30215718 https://stackoverflow.com/questions/30215023/how-cobol-handl...