unit_conversions/data_storage.rs
1// <auto-generated>
2// This code was generated by the UnitCodeGenerator tool
3//
4// Changes to this file will be lost if the code is regenerated
5// </auto-generated>
6
7//! # Data Storage based converters
8
9/// Bits conversion functions
10pub mod bits {
11 /// Converts the supplied Bits value to Kilobits
12 /// # Arguments
13 /// * `value` - The Bits input value
14 pub fn to_kilobits(value: f64) -> f64 {
15 return value / 1000.0;
16 }
17 /// Converts the supplied Bits value to Megabits
18 /// # Arguments
19 /// * `value` - The Bits input value
20 pub fn to_megabits(value: f64) -> f64 {
21 return value / 1e+6;
22 }
23 /// Converts the supplied Bits value to Gigabits
24 /// # Arguments
25 /// * `value` - The Bits input value
26 pub fn to_gigabits(value: f64) -> f64 {
27 return value / 1e+9;
28 }
29 /// Converts the supplied Bits value to Terabits
30 /// # Arguments
31 /// * `value` - The Bits input value
32 pub fn to_terabits(value: f64) -> f64 {
33 return value / 1e+12;
34 }
35 /// Converts the supplied Bits value to Kilobytes
36 /// # Arguments
37 /// * `value` - The Bits input value
38 pub fn to_kilobytes(value: f64) -> f64 {
39 return value / 8000.0;
40 }
41 /// Converts the supplied Bits value to Megabytes
42 /// # Arguments
43 /// * `value` - The Bits input value
44 pub fn to_megabytes(value: f64) -> f64 {
45 return value / 8e+6;
46 }
47 /// Converts the supplied Bits value to Gigabytes
48 /// # Arguments
49 /// * `value` - The Bits input value
50 pub fn to_gigabytes(value: f64) -> f64 {
51 return value / 8e+9;
52 }
53 /// Converts the supplied Bits value to Terabytes
54 /// # Arguments
55 /// * `value` - The Bits input value
56 pub fn to_terabytes(value: f64) -> f64 {
57 return value / 8e+12;
58 }
59 /// Converts the supplied Bits value to Kibibits
60 /// # Arguments
61 /// * `value` - The Bits input value
62 pub fn to_kibibits(value: f64) -> f64 {
63 return value / 1024.0;
64 }
65 /// Converts the supplied Bits value to Mebibits
66 /// # Arguments
67 /// * `value` - The Bits input value
68 pub fn to_mebibits(value: f64) -> f64 {
69 return value / 1048576.0;
70 }
71}
72/// Gigabits conversion functions
73pub mod gigabits {
74 /// Converts the supplied Gigabits value to Bits
75 /// # Arguments
76 /// * `value` - The Gigabits input value
77 pub fn to_bits(value: f64) -> f64 {
78 return value * 1e+9;
79 }
80 /// Converts the supplied Gigabits value to Kilobits
81 /// # Arguments
82 /// * `value` - The Gigabits input value
83 pub fn to_kilobits(value: f64) -> f64 {
84 return value * 1e+6;
85 }
86 /// Converts the supplied Gigabits value to Megabits
87 /// # Arguments
88 /// * `value` - The Gigabits input value
89 pub fn to_megabits(value: f64) -> f64 {
90 return value * 1000.0;
91 }
92 /// Converts the supplied Gigabits value to Terabits
93 /// # Arguments
94 /// * `value` - The Gigabits input value
95 pub fn to_terabits(value: f64) -> f64 {
96 return value / 1000.0;
97 }
98 /// Converts the supplied Gigabits value to Kilobytes
99 /// # Arguments
100 /// * `value` - The Gigabits input value
101 pub fn to_kilobytes(value: f64) -> f64 {
102 return value * 125000.0;
103 }
104 /// Converts the supplied Gigabits value to Megabytes
105 /// # Arguments
106 /// * `value` - The Gigabits input value
107 pub fn to_megabytes(value: f64) -> f64 {
108 return value * 125.0;
109 }
110 /// Converts the supplied Gigabits value to Gigabytes
111 /// # Arguments
112 /// * `value` - The Gigabits input value
113 pub fn to_gigabytes(value: f64) -> f64 {
114 return value / 8.0;
115 }
116 /// Converts the supplied Gigabits value to Terabytes
117 /// # Arguments
118 /// * `value` - The Gigabits input value
119 pub fn to_terabytes(value: f64) -> f64 {
120 return value / 8000.0;
121 }
122 /// Converts the supplied Gigabits value to Kibibits
123 /// # Arguments
124 /// * `value` - The Gigabits input value
125 pub fn to_kibibits(value: f64) -> f64 {
126 return value * 976562.5;
127 }
128 /// Converts the supplied Gigabits value to Mebibits
129 /// # Arguments
130 /// * `value` - The Gigabits input value
131 pub fn to_mebibits(value: f64) -> f64 {
132 return value * 953.67431640625;
133 }
134}
135/// Gigabytes conversion functions
136pub mod gigabytes {
137 /// Converts the supplied Gigabytes value to Bits
138 /// # Arguments
139 /// * `value` - The Gigabytes input value
140 pub fn to_bits(value: f64) -> f64 {
141 return value * 8e+9;
142 }
143 /// Converts the supplied Gigabytes value to Kilobits
144 /// # Arguments
145 /// * `value` - The Gigabytes input value
146 pub fn to_kilobits(value: f64) -> f64 {
147 return value * 8e+6;
148 }
149 /// Converts the supplied Gigabytes value to Megabits
150 /// # Arguments
151 /// * `value` - The Gigabytes input value
152 pub fn to_megabits(value: f64) -> f64 {
153 return value * 8000.0;
154 }
155 /// Converts the supplied Gigabytes value to Gigabits
156 /// # Arguments
157 /// * `value` - The Gigabytes input value
158 pub fn to_gigabits(value: f64) -> f64 {
159 return value * 8.0;
160 }
161 /// Converts the supplied Gigabytes value to Terabits
162 /// # Arguments
163 /// * `value` - The Gigabytes input value
164 pub fn to_terabits(value: f64) -> f64 {
165 return value / 125.0;
166 }
167 /// Converts the supplied Gigabytes value to Kilobytes
168 /// # Arguments
169 /// * `value` - The Gigabytes input value
170 pub fn to_kilobytes(value: f64) -> f64 {
171 return value * 1e+6;
172 }
173 /// Converts the supplied Gigabytes value to Megabytes
174 /// # Arguments
175 /// * `value` - The Gigabytes input value
176 pub fn to_megabytes(value: f64) -> f64 {
177 return value * 1000.0;
178 }
179 /// Converts the supplied Gigabytes value to Terabytes
180 /// # Arguments
181 /// * `value` - The Gigabytes input value
182 pub fn to_terabytes(value: f64) -> f64 {
183 return value / 1000.0;
184 }
185 /// Converts the supplied Gigabytes value to Kibibits
186 /// # Arguments
187 /// * `value` - The Gigabytes input value
188 pub fn to_kibibits(value: f64) -> f64 {
189 return value * 7812500.0;
190 }
191 /// Converts the supplied Gigabytes value to Mebibits
192 /// # Arguments
193 /// * `value` - The Gigabytes input value
194 pub fn to_mebibits(value: f64) -> f64 {
195 return value * 7629.39;
196 }
197}
198/// Kibibits conversion functions
199pub mod kibibits {
200 /// Converts the supplied Kibibits value to Bits
201 /// # Arguments
202 /// * `value` - The Kibibits input value
203 pub fn to_bits(value: f64) -> f64 {
204 return value * 1024.0;
205 }
206 /// Converts the supplied Kibibits value to Kilobits
207 /// # Arguments
208 /// * `value` - The Kibibits input value
209 pub fn to_kilobits(value: f64) -> f64 {
210 return value * 1.024;
211 }
212 /// Converts the supplied Kibibits value to Megabits
213 /// # Arguments
214 /// * `value` - The Kibibits input value
215 pub fn to_megabits(value: f64) -> f64 {
216 return value / 976.563;
217 }
218 /// Converts the supplied Kibibits value to Gigabits
219 /// # Arguments
220 /// * `value` - The Kibibits input value
221 pub fn to_gigabits(value: f64) -> f64 {
222 return value / 976562.5;
223 }
224 /// Converts the supplied Kibibits value to Terabits
225 /// # Arguments
226 /// * `value` - The Kibibits input value
227 pub fn to_terabits(value: f64) -> f64 {
228 return value / 976562500.0;
229 }
230 /// Converts the supplied Kibibits value to Kilobytes
231 /// # Arguments
232 /// * `value` - The Kibibits input value
233 pub fn to_kilobytes(value: f64) -> f64 {
234 return value / 7.8125;
235 }
236 /// Converts the supplied Kibibits value to Megabytes
237 /// # Arguments
238 /// * `value` - The Kibibits input value
239 pub fn to_megabytes(value: f64) -> f64 {
240 return value / 7812.5;
241 }
242 /// Converts the supplied Kibibits value to Gigabytes
243 /// # Arguments
244 /// * `value` - The Kibibits input value
245 pub fn to_gigabytes(value: f64) -> f64 {
246 return value / 7812500.0;
247 }
248 /// Converts the supplied Kibibits value to Terabytes
249 /// # Arguments
250 /// * `value` - The Kibibits input value
251 pub fn to_terabytes(value: f64) -> f64 {
252 return value / 7812500000.0;
253 }
254 /// Converts the supplied Kibibits value to Mebibits
255 /// # Arguments
256 /// * `value` - The Kibibits input value
257 pub fn to_mebibits(value: f64) -> f64 {
258 return value / 1024.0;
259 }
260}
261/// Kilobits conversion functions
262pub mod kilobits {
263 /// Converts the supplied Kilobits value to Bits
264 /// # Arguments
265 /// * `value` - The Kilobits input value
266 pub fn to_bits(value: f64) -> f64 {
267 return value * 1000.0;
268 }
269 /// Converts the supplied Kilobits value to Megabits
270 /// # Arguments
271 /// * `value` - The Kilobits input value
272 pub fn to_megabits(value: f64) -> f64 {
273 return value / 1000.0;
274 }
275 /// Converts the supplied Kilobits value to Gigabits
276 /// # Arguments
277 /// * `value` - The Kilobits input value
278 pub fn to_gigabits(value: f64) -> f64 {
279 return value / 1e+6;
280 }
281 /// Converts the supplied Kilobits value to Terabits
282 /// # Arguments
283 /// * `value` - The Kilobits input value
284 pub fn to_terabits(value: f64) -> f64 {
285 return value / 1e+9;
286 }
287 /// Converts the supplied Kilobits value to Kilobytes
288 /// # Arguments
289 /// * `value` - The Kilobits input value
290 pub fn to_kilobytes(value: f64) -> f64 {
291 return value / 8.0;
292 }
293 /// Converts the supplied Kilobits value to Megabytes
294 /// # Arguments
295 /// * `value` - The Kilobits input value
296 pub fn to_megabytes(value: f64) -> f64 {
297 return value / 8000.0;
298 }
299 /// Converts the supplied Kilobits value to Gigabytes
300 /// # Arguments
301 /// * `value` - The Kilobits input value
302 pub fn to_gigabytes(value: f64) -> f64 {
303 return value / 8e+6;
304 }
305 /// Converts the supplied Kilobits value to Terabytes
306 /// # Arguments
307 /// * `value` - The Kilobits input value
308 pub fn to_terabytes(value: f64) -> f64 {
309 return value / 8e+9;
310 }
311 /// Converts the supplied Kilobits value to Kibibits
312 /// # Arguments
313 /// * `value` - The Kilobits input value
314 pub fn to_kibibits(value: f64) -> f64 {
315 return value / 1.024;
316 }
317 /// Converts the supplied Kilobits value to Mebibits
318 /// # Arguments
319 /// * `value` - The Kilobits input value
320 pub fn to_mebibits(value: f64) -> f64 {
321 return value / 1048.58;
322 }
323}
324/// Kilobytes conversion functions
325pub mod kilobytes {
326 /// Converts the supplied Kilobytes value to Bits
327 /// # Arguments
328 /// * `value` - The Kilobytes input value
329 pub fn to_bits(value: f64) -> f64 {
330 return value * 8000.0;
331 }
332 /// Converts the supplied Kilobytes value to Kilobits
333 /// # Arguments
334 /// * `value` - The Kilobytes input value
335 pub fn to_kilobits(value: f64) -> f64 {
336 return value * 8.0;
337 }
338 /// Converts the supplied Kilobytes value to Megabits
339 /// # Arguments
340 /// * `value` - The Kilobytes input value
341 pub fn to_megabits(value: f64) -> f64 {
342 return value / 125.0;
343 }
344 /// Converts the supplied Kilobytes value to Gigabits
345 /// # Arguments
346 /// * `value` - The Kilobytes input value
347 pub fn to_gigabits(value: f64) -> f64 {
348 return value / 125000.0;
349 }
350 /// Converts the supplied Kilobytes value to Terabits
351 /// # Arguments
352 /// * `value` - The Kilobytes input value
353 pub fn to_terabits(value: f64) -> f64 {
354 return value / 1.25e+8;
355 }
356 /// Converts the supplied Kilobytes value to Megabytes
357 /// # Arguments
358 /// * `value` - The Kilobytes input value
359 pub fn to_megabytes(value: f64) -> f64 {
360 return value / 1000.0;
361 }
362 /// Converts the supplied Kilobytes value to Gigabytes
363 /// # Arguments
364 /// * `value` - The Kilobytes input value
365 pub fn to_gigabytes(value: f64) -> f64 {
366 return value / 1e+6;
367 }
368 /// Converts the supplied Kilobytes value to Terabytes
369 /// # Arguments
370 /// * `value` - The Kilobytes input value
371 pub fn to_terabytes(value: f64) -> f64 {
372 return value / 1e+9;
373 }
374 /// Converts the supplied Kilobytes value to Kibibits
375 /// # Arguments
376 /// * `value` - The Kilobytes input value
377 pub fn to_kibibits(value: f64) -> f64 {
378 return value * 7.8125;
379 }
380 /// Converts the supplied Kilobytes value to Mebibits
381 /// # Arguments
382 /// * `value` - The Kilobytes input value
383 pub fn to_mebibits(value: f64) -> f64 {
384 return value * 0.00762939;
385 }
386}
387/// Mebibits conversion functions
388pub mod mebibits {
389 /// Converts the supplied Mebibits value to Bits
390 /// # Arguments
391 /// * `value` - The Mebibits input value
392 pub fn to_bits(value: f64) -> f64 {
393 return value * 1048576.0;
394 }
395 /// Converts the supplied Mebibits value to Kilobits
396 /// # Arguments
397 /// * `value` - The Mebibits input value
398 pub fn to_kilobits(value: f64) -> f64 {
399 return value * 1048.58;
400 }
401 /// Converts the supplied Mebibits value to Megabits
402 /// # Arguments
403 /// * `value` - The Mebibits input value
404 pub fn to_megabits(value: f64) -> f64 {
405 return value * 1.04858;
406 }
407 /// Converts the supplied Mebibits value to Gigabits
408 /// # Arguments
409 /// * `value` - The Mebibits input value
410 pub fn to_gigabits(value: f64) -> f64 {
411 return value / 953.67431640625;
412 }
413 /// Converts the supplied Mebibits value to Terabits
414 /// # Arguments
415 /// * `value` - The Mebibits input value
416 pub fn to_terabits(value: f64) -> f64 {
417 return value / 953674.0;
418 }
419 /// Converts the supplied Mebibits value to Kilobytes
420 /// # Arguments
421 /// * `value` - The Mebibits input value
422 pub fn to_kilobytes(value: f64) -> f64 {
423 return value / 0.00762939;
424 }
425 /// Converts the supplied Mebibits value to Megabytes
426 /// # Arguments
427 /// * `value` - The Mebibits input value
428 pub fn to_megabytes(value: f64) -> f64 {
429 return value / 7.62939;
430 }
431 /// Converts the supplied Mebibits value to Gigabytes
432 /// # Arguments
433 /// * `value` - The Mebibits input value
434 pub fn to_gigabytes(value: f64) -> f64 {
435 return value / 7629.39;
436 }
437 /// Converts the supplied Mebibits value to Terabytes
438 /// # Arguments
439 /// * `value` - The Mebibits input value
440 pub fn to_terabytes(value: f64) -> f64 {
441 return value * 0.000000131072;
442 }
443 /// Converts the supplied Mebibits value to Kibibits
444 /// # Arguments
445 /// * `value` - The Mebibits input value
446 pub fn to_kibibits(value: f64) -> f64 {
447 return value * 1024.0;
448 }
449}
450/// Megabits conversion functions
451pub mod megabits {
452 /// Converts the supplied Megabits value to Bits
453 /// # Arguments
454 /// * `value` - The Megabits input value
455 pub fn to_bits(value: f64) -> f64 {
456 return value * 1e+6;
457 }
458 /// Converts the supplied Megabits value to Kilobits
459 /// # Arguments
460 /// * `value` - The Megabits input value
461 pub fn to_kilobits(value: f64) -> f64 {
462 return value * 1000.0;
463 }
464 /// Converts the supplied Megabits value to Gigabits
465 /// # Arguments
466 /// * `value` - The Megabits input value
467 pub fn to_gigabits(value: f64) -> f64 {
468 return value / 1000.0;
469 }
470 /// Converts the supplied Megabits value to Terabits
471 /// # Arguments
472 /// * `value` - The Megabits input value
473 pub fn to_terabits(value: f64) -> f64 {
474 return value / 1e+6;
475 }
476 /// Converts the supplied Megabits value to Kilobytes
477 /// # Arguments
478 /// * `value` - The Megabits input value
479 pub fn to_kilobytes(value: f64) -> f64 {
480 return value * 125.0;
481 }
482 /// Converts the supplied Megabits value to Megabytes
483 /// # Arguments
484 /// * `value` - The Megabits input value
485 pub fn to_megabytes(value: f64) -> f64 {
486 return value / 8.0;
487 }
488 /// Converts the supplied Megabits value to Gigabytes
489 /// # Arguments
490 /// * `value` - The Megabits input value
491 pub fn to_gigabytes(value: f64) -> f64 {
492 return value / 8000.0;
493 }
494 /// Converts the supplied Megabits value to Terabytes
495 /// # Arguments
496 /// * `value` - The Megabits input value
497 pub fn to_terabytes(value: f64) -> f64 {
498 return value / 8e+6;
499 }
500 /// Converts the supplied Megabits value to Kibibits
501 /// # Arguments
502 /// * `value` - The Megabits input value
503 pub fn to_kibibits(value: f64) -> f64 {
504 return value * 976.563;
505 }
506 /// Converts the supplied Megabits value to Mebibits
507 /// # Arguments
508 /// * `value` - The Megabits input value
509 pub fn to_mebibits(value: f64) -> f64 {
510 return value / 1.04858;
511 }
512}
513/// Megabytes conversion functions
514pub mod megabytes {
515 /// Converts the supplied Megabytes value to Bits
516 /// # Arguments
517 /// * `value` - The Megabytes input value
518 pub fn to_bits(value: f64) -> f64 {
519 return value * 8e+6;
520 }
521 /// Converts the supplied Megabytes value to Kilobits
522 /// # Arguments
523 /// * `value` - The Megabytes input value
524 pub fn to_kilobits(value: f64) -> f64 {
525 return value * 8000.0;
526 }
527 /// Converts the supplied Megabytes value to Megabits
528 /// # Arguments
529 /// * `value` - The Megabytes input value
530 pub fn to_megabits(value: f64) -> f64 {
531 return value * 8.0;
532 }
533 /// Converts the supplied Megabytes value to Gigabits
534 /// # Arguments
535 /// * `value` - The Megabytes input value
536 pub fn to_gigabits(value: f64) -> f64 {
537 return value / 125.0;
538 }
539 /// Converts the supplied Megabytes value to Terabits
540 /// # Arguments
541 /// * `value` - The Megabytes input value
542 pub fn to_terabits(value: f64) -> f64 {
543 return value / 125000.0;
544 }
545 /// Converts the supplied Megabytes value to Kilobytes
546 /// # Arguments
547 /// * `value` - The Megabytes input value
548 pub fn to_kilobytes(value: f64) -> f64 {
549 return value * 1000.0;
550 }
551 /// Converts the supplied Megabytes value to Gigabytes
552 /// # Arguments
553 /// * `value` - The Megabytes input value
554 pub fn to_gigabytes(value: f64) -> f64 {
555 return value / 1000.0;
556 }
557 /// Converts the supplied Megabytes value to Terabytes
558 /// # Arguments
559 /// * `value` - The Megabytes input value
560 pub fn to_terabytes(value: f64) -> f64 {
561 return value / 1e+6;
562 }
563 /// Converts the supplied Megabytes value to Kibibits
564 /// # Arguments
565 /// * `value` - The Megabytes input value
566 pub fn to_kibibits(value: f64) -> f64 {
567 return value * 7812.5;
568 }
569 /// Converts the supplied Megabytes value to Mebibits
570 /// # Arguments
571 /// * `value` - The Megabytes input value
572 pub fn to_mebibits(value: f64) -> f64 {
573 return value * 7.62939;
574 }
575}
576/// Terabits conversion functions
577pub mod terabits {
578 /// Converts the supplied Terabits value to Bits
579 /// # Arguments
580 /// * `value` - The Terabits input value
581 pub fn to_bits(value: f64) -> f64 {
582 return value * 1e+12;
583 }
584 /// Converts the supplied Terabits value to Kilobits
585 /// # Arguments
586 /// * `value` - The Terabits input value
587 pub fn to_kilobits(value: f64) -> f64 {
588 return value * 1e+9;
589 }
590 /// Converts the supplied Terabits value to Megabits
591 /// # Arguments
592 /// * `value` - The Terabits input value
593 pub fn to_megabits(value: f64) -> f64 {
594 return value * 1e+6;
595 }
596 /// Converts the supplied Terabits value to Gigabits
597 /// # Arguments
598 /// * `value` - The Terabits input value
599 pub fn to_gigabits(value: f64) -> f64 {
600 return value * 1000.0;
601 }
602 /// Converts the supplied Terabits value to Kilobytes
603 /// # Arguments
604 /// * `value` - The Terabits input value
605 pub fn to_kilobytes(value: f64) -> f64 {
606 return value * 1.25e+8;
607 }
608 /// Converts the supplied Terabits value to Megabytes
609 /// # Arguments
610 /// * `value` - The Terabits input value
611 pub fn to_megabytes(value: f64) -> f64 {
612 return value * 125000.0;
613 }
614 /// Converts the supplied Terabits value to Gigabytes
615 /// # Arguments
616 /// * `value` - The Terabits input value
617 pub fn to_gigabytes(value: f64) -> f64 {
618 return value * 125.0;
619 }
620 /// Converts the supplied Terabits value to Terabytes
621 /// # Arguments
622 /// * `value` - The Terabits input value
623 pub fn to_terabytes(value: f64) -> f64 {
624 return value / 8.0;
625 }
626 /// Converts the supplied Terabits value to Kibibits
627 /// # Arguments
628 /// * `value` - The Terabits input value
629 pub fn to_kibibits(value: f64) -> f64 {
630 return value * 976562500.0;
631 }
632 /// Converts the supplied Terabits value to Mebibits
633 /// # Arguments
634 /// * `value` - The Terabits input value
635 pub fn to_mebibits(value: f64) -> f64 {
636 return value * 953674.0;
637 }
638}
639/// Terabytes conversion functions
640pub mod terabytes {
641 /// Converts the supplied Terabytes value to Bits
642 /// # Arguments
643 /// * `value` - The Terabytes input value
644 pub fn to_bits(value: f64) -> f64 {
645 return value * 8e+12;
646 }
647 /// Converts the supplied Terabytes value to Kilobits
648 /// # Arguments
649 /// * `value` - The Terabytes input value
650 pub fn to_kilobits(value: f64) -> f64 {
651 return value * 8e+9;
652 }
653 /// Converts the supplied Terabytes value to Megabits
654 /// # Arguments
655 /// * `value` - The Terabytes input value
656 pub fn to_megabits(value: f64) -> f64 {
657 return value * 8e+6;
658 }
659 /// Converts the supplied Terabytes value to Gigabits
660 /// # Arguments
661 /// * `value` - The Terabytes input value
662 pub fn to_gigabits(value: f64) -> f64 {
663 return value * 8000.0;
664 }
665 /// Converts the supplied Terabytes value to Terabits
666 /// # Arguments
667 /// * `value` - The Terabytes input value
668 pub fn to_terabits(value: f64) -> f64 {
669 return value * 8.0;
670 }
671 /// Converts the supplied Terabytes value to Kilobytes
672 /// # Arguments
673 /// * `value` - The Terabytes input value
674 pub fn to_kilobytes(value: f64) -> f64 {
675 return value * 1e+9;
676 }
677 /// Converts the supplied Terabytes value to Megabytes
678 /// # Arguments
679 /// * `value` - The Terabytes input value
680 pub fn to_megabytes(value: f64) -> f64 {
681 return value * 1e+6;
682 }
683 /// Converts the supplied Terabytes value to Gigabytes
684 /// # Arguments
685 /// * `value` - The Terabytes input value
686 pub fn to_gigabytes(value: f64) -> f64 {
687 return value * 1000.0;
688 }
689 /// Converts the supplied Terabytes value to Kibibits
690 /// # Arguments
691 /// * `value` - The Terabytes input value
692 pub fn to_kibibits(value: f64) -> f64 {
693 return value * 7812500000.0;
694 }
695 /// Converts the supplied Terabytes value to Mebibits
696 /// # Arguments
697 /// * `value` - The Terabytes input value
698 pub fn to_mebibits(value: f64) -> f64 {
699 return value / 0.000000131072;
700 }
701}