Measures¶
Overview¶
Where possible attributes within Spec Check are assigned a measure and unit.
Measures come in two forms; system and non-system. A system measure is a measure for which there are different units for Metric and Imperial systems, for example length has imperial units such as in and ft. A non-system measure however has units which are not specific to either system, for example Time or Frequency.
Formatting¶
When outputting values for units it's generally acceptable to output the value ahead of the unit, for example; 2 in, 5 cm. Where allowed there should be a narrow space between the number and the unit, this can be accomplished in html using the   character.
The only exception to this rule is ft-in in the length measure - for this measure all values will be provided in inches, a conversion to ft will then need to be made to output the correct value. Examples:
- 0 ft-in = 0 in
- 4 ft-in = 4 in
- 12 ft-in = 1 ft
- 30 ft-in = 2 ft 6 in
Models¶
Measure¶
{
"id": 0,
"key": "string",
"name": "string",
"units": [{
... unit
}]
}
Unit¶
{
"key": "string",
"name": "string",
"system": "Metric" | "Imperial" | undefined
}
Examples¶
Length¶
{
"key": "length",
"name": "Length",
"units": [
{
"key": "km",
"name": "Kilometer",
"system": "Metric"
},
{
"key": "m",
"name": "Metre",
"system": "Metric"
},
{
"key": "cm",
"name": "Centimetre",
"system": "Metric"
},
{
"key": "mm",
"name": "Millimetre",
"system": "Metric"
},
{
"key": "μm",
"name": "Micrometre",
"system": "Metric"
},
{
"key": "mi",
"name": "Mile",
"system": "Imperial"
},
{
"key": "ft",
"name": "Foot",
"system": "Imperial"
},
{
"key": "in",
"name": "Inch",
"system": "Imperial"
},
{
"key": "/32",
"name": "1/32 Inch",
"system": "Imperial"
},
{
"key": "ft-in",
"name": "Feet and Inches",
"system": "Imperial"
}
]
}
Frequency¶
{
"key": "frequency",
"name": "Frequency",
"units": [
{
"key": "Hz",
"name": "Hertz"
},
{
"key": "bpm",
"name": "Beat per minute"
},
{
"key": "rpm",
"name": "Revolution per minute"
}
]
}