Tolerance
Math representation of the physically needed permissible deviation of measures in Rust avoiding floating point inaccuracy. Allows to calculate with tolerance ranges in a consistent way.
Based of an own type Myth
with a accuracy of 1/10th my-meter (= 0.1μ).
Example
use T128;
Limits
T128
A 128bit wide value. Based on a Myth64
(64bit) for the value it could handle sizes up to +/-922_337_203 km
with a deviation of +/-214 m (Myth32
).
T64
based on a Myth32
(32bit) for the value it could handle sizes up to +/-214 m
with a deviation of +/-3 mm (Myth16
).
History
Started as AllowanceValue renamed and moved for better usability.