Mathfail

20080506546

Office Space makes me laugh. Rounding errors do not. Even if they could make me rich/send me to jail.

In math class we used a line above a decimal to indicate it was to be a repeating number. The line is known as a vinculum and is used to symbolize a group. Math notation also uses a dot about a number for the same meaning. But are elegant.

Javascript doesn’t seem to have any notation for this. I don’t know of any programming languages that do. Eventually the fraction is going to get rounded in output but if rounding it too early in the process causes too significant of error in the final output the only solution is calculating the sum.

33 + 1⁄3 = 33.3

Gross. Or maybe that means my code is gross in that I’m needing a constant to hold such a value.


Skateboards and bikes are better at nights

Skateboards and bikes are better at nights. 0 comments.


Search WayTooCrowded
The Header Should Always Point Home