4 ms·
No need to do an integer redirection. i < 0.95 would have sufficed.
by BeetleB 8y ago
No need to do an integer redirection. i < 0.95 would have sufficed.
- jstewartmobile 8y agoOutside of science and engineering, I think fixed point BCD is otherwise preferable. It's better matched to the expectations we've all had since grade-school. Original example was about steps, not termination. With FP, each tick label has to be post-formatted with a precision specifier to get the desired behavior. With BCD, casting to a string is sufficient (and super-simple to implement).