3 ms·
Float is an implementation detail. Precision is an API contract.
by judk 13y ago
Float is an implementation detail. Precision is an API contract.
- dllthomas 13y agoRight. An interface exposed with integers may wind up using floats internally, or vice versa; numeric algorithms may wind up doing arbitrary things to precision and accuracy; &c. "You are passing around a float" puts some bounds on what can be delivered but that isn't really sufficient information when it matters and is useless fluff when it doesn't.