Nm³ |
---|
h |
Unit()
should support:
Unit()
should encode exponents of mol.
Unit code (hex) | Unit Exponent (hex) | Representation | Notes |
---|---|---|---|
00F0D121 | 7 | V | The usual unit code |
00E0A245 | 7 | V | This is a possible but forbidden unit code, all exponents are even |
00E0B245 | 7 | V/√Hz (= V√s) | one exponent (for s) is odd |
00E0B245 | E | nV/√Hz | 10-9 multiplied |
Unit Exponent()
should be used as follows:
0 (LSB) | 10x, -8 ≤ x ≤ 7 | unchanged |
---|---|---|
1 | 2x, -8 ≤ x ≤ 7 | new |
2 | 3x, -8 ≤ x ≤ 7 | |
3 (MSB) | 5x, -8 ≤ x ≤ 7 |
Unit code (hex) | Unit Exponent (hex) | Representation | Note |
---|---|---|---|
F031 | 0 | cm³/s | base unit |
F031 | 6 | m³/s | 106 multiplied |
F031 | 00FEFE04 | m³/h | 3600 divided |
Units are stored as String Descriptor in Unicode. The device should deliver different versions of the unit in one string for some different usages! Unit strings must not contain delimiting characters.
The reference to a unit descriptor is done with a new global or local item. (To be defined!)
prefix character | type | usage | mantadory? |
---|---|---|---|
none | Unicode representation | saving into unicode-text files, visual representation | yes |
U+1 | plain ASCII | saving into non-unicode-text files | yes if Unicode representation contains character codes ≥ U+80 |
U+2 | Unicode with HTML | visual representation | no |
U+3 | Unicode with RTF | ||
U+4 | Unicode with TeX |
Units should not be language specific. But it's free for the firmware to use LCIDs for picking a culture-specific unit.
The client application first converts the Unicode representation using
WideCharToMultiByte(CP_ACP)
or similar, and checks for conversion errors.
If so, the application uses the ANSI representation, otherwise, it uses the conversion result.
The usual case for Western code pages is the Ω sign which is then saved as Ohm. For greek and far-east users, Ω is available and used for writing.
Unit code (hex) | Unit Exponent (hex) | Representation |
---|---|---|
1001 | 0 | s |
00F0D121 | 7 | V |