1pub mod f32 {
20 use crate::prelude::unit_scale;
21
22 #[unit_scale(to = 1e15)]
24 pub struct Peta;
25
26 #[unit_scale(to = 1e12)]
28 pub struct Tera;
29
30 #[unit_scale(to = 1e9)]
32 pub struct Giga;
33
34 #[unit_scale(to = 1e6)]
36 pub struct Mega;
37
38 #[unit_scale(to = 1e3)]
40 pub struct Kilo;
41
42 #[unit_scale(to = 1e2)]
44 pub struct Hecto;
45
46 #[unit_scale(to = 1e1)]
48 pub struct Deka;
49
50 #[unit_scale(to = 1e0)]
52 pub struct Base;
53
54 #[unit_scale(to = 1e-1)]
56 pub struct Deci;
57
58 #[unit_scale(to = 1e-2)]
60 pub struct Centi;
61
62 #[unit_scale(to = 1e-3)]
64 pub struct Milli;
65
66 #[unit_scale(to = 1e-6)]
68 pub struct Micro;
69
70 #[unit_scale(to = 1e-9)]
72 pub struct Nano;
73
74 #[unit_scale(to = 1e-12)]
76 pub struct Pico;
77
78 #[unit_scale(to = 1e-15)]
80 pub struct Femto;
81}
82
83pub mod f64 {
84 use crate::prelude::unit_scale;
85
86 #[unit_scale(to = 1e15, with = "f64")]
88 pub struct Peta;
89
90 #[unit_scale(to = 1e12, with = "f64")]
92 pub struct Tera;
93
94 #[unit_scale(to = 1e9, with = "f64")]
96 pub struct Giga;
97
98 #[unit_scale(to = 1e6, with = "f64")]
100 pub struct Mega;
101
102 #[unit_scale(to = 1e3, with = "f64")]
104 pub struct Kilo;
105
106 #[unit_scale(to = 1e2, with = "f64")]
108 pub struct Hecto;
109
110 #[unit_scale(to = 1e1, with = "f64")]
112 pub struct Deka;
113
114 #[unit_scale(to = 1e0, with = "f64")]
116 pub struct Base;
117
118 #[unit_scale(to = 1e-1, with = "f64")]
120 pub struct Deci;
121
122 #[unit_scale(to = 1e-2, with = "f64")]
124 pub struct Centi;
125
126 #[unit_scale(to = 1e-3, with = "f64")]
128 pub struct Milli;
129
130 #[unit_scale(to = 1e-6, with = "f64")]
132 pub struct Micro;
133
134 #[unit_scale(to = 1e-9, with = "f64")]
136 pub struct Nano;
137
138 #[unit_scale(to = 1e-12, with = "f64")]
140 pub struct Pico;
141
142 #[unit_scale(to = 1e-15, with = "f64")]
144 pub struct Femto;
145}