Why is floating point preferred over long for precise tasks?
Why is float preferred for precision? Couldn't very large integers to
represent the precision that float give and be deterministic across all
machines? For example, an object moving 0.48124 meters in floating point
could instead be represented by an object moving 48124 millimeters in int
or long.
No comments:
Post a Comment