2 ms·
Many people agree with you about division. Many more disagree. There were long discussions about the merits. One of the reasons for having 1/2 == 0.5 is that u
by dalke 11y ago
Many people agree with you about division. Many more disagree. There were long discussions about the merits.
One of the reasons for having 1/2 == 0.5 is that user testing of relatively new programmers showed that many a mistake. My own experience working with computational chemists (who are relatively new programmers) confirms that. I myself has an experienced program also make that mistake, so nowadays always use the future directive to get float division.