Skip to main content
2 events
when toggle format what by license comment
Mar 14, 2013 at 15:52 comment added user29079 This is sound advice. In my experience, there is a frightening amount of programmers who think "my number has a decimal point and therefore I must use float". For example: "The specification says that my program should calculate the length in meters, the output can be anything from 0 to 9.99. Therefore I must use float." Think outside the box and rewrite the program so that it uses centimeters! 0-999 centimeters can fit in a 16 bit integer, there is no reason why you would need float.
Mar 13, 2013 at 0:16 history answered mattnz CC BY-SA 3.0