File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ pub const METER_KILOMETER_FACTOR: f64 = 0.001;
22
22
// Constants, imperial
23
23
24
24
/// Number of inches in a meter
25
- pub const METER_INCH_FACTOR : f64 = 1000 .0 / 25.4 ;
25
+ pub const METER_INCH_FACTOR : f64 = 10000 .0 / 254.0 ;
26
26
/// Number of feet in a meter
27
- pub const METER_FEET_FACTOR : f64 = 1000 .0 / ( 25.4 * 12.0 ) ;
27
+ pub const METER_FEET_FACTOR : f64 = 10000 .0 / ( 254.0 * 12.0 ) ;
28
28
/// Number of yards in a meter
29
- pub const METER_YARD_FACTOR : f64 = 1000 .0 / ( 25.4 * 12.0 * 3.0 ) ;
29
+ pub const METER_YARD_FACTOR : f64 = 10000 .0 / ( 254.0 * 12.0 * 3.0 ) ;
30
30
/// Number of furlongs in a meter
31
- pub const METER_FURLONG_FACTOR : f64 = 1000 .0 / ( 25.4 * 12.0 * 3.0 * 220.0 ) ;
31
+ pub const METER_FURLONG_FACTOR : f64 = 10000 .0 / ( 254.0 * 12.0 * 3.0 * 220.0 ) ;
32
32
/// Number of miles in a meter
33
- pub const METER_MILE_FACTOR : f64 = 1000 .0 / ( 25.4 * 12.0 * 3.0 * 1760.0 ) ;
33
+ pub const METER_MILE_FACTOR : f64 = 10000 .0 / ( 254.0 * 12.0 * 3.0 * 1760.0 ) ;
34
34
35
35
/// The Length struct can be used to deal with lengths in a common way.
36
36
/// Common metric and imperial units are supported.
You can’t perform that action at this time.
0 commit comments