1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// ---------------------------------------------------------------------------
// Copyright: (c) 2022 ff. Michael Amrhein (michael@adrhinum.de)
// License: This program is part of a larger application. For license
// details please read the file LICENSE.TXT provided together
// with the application.
// ---------------------------------------------------------------------------
// $Source: src/mass.rs $
// $Revision: 2022-04-14T12:54:25+02:00 $
//! Definition of basic quantity `Mass`.
use crate*;
/// The quantity of matter in a physical body.
///
/// Also used as measure of a physical body's resistance to acceleration.
///
/// Reference unit: Kilogram ('kg')
///
/// Predefined units:
///
/// | Symbol | Name | Definition | Equivalent in 'kg' |
/// |--------|------------------------|-------------------|--------------------|
/// | mg | Milligram | 0.001·g | 0.000001 |
/// | ct | Carat | 0.2·g | 0.0002 |
/// | g | Gram | 0.001·kg | 0.001 |
/// | oz | Ounce | 0.0625·lb | 0.028349523125 |
/// | lb | Pound | 0.45359237·kg | 0.45359237 |
/// | st | Stone | 14·lb | 6.35029318 |
/// | t | Tonne | 1000·kg | 1000 |