... | ... | @@ -127,7 +127,7 @@ Code must convert to other units from internal units only during I/O for user c |
|
|
|
|
|
Inputs must be converted to internal units before any other processing is done on the values.
|
|
|
|
|
|
Conversions between two units should be handled by a single function or macro (allowing for overloading for different types). A- hoc conversions must be avoided.
|
|
|
Conversions between two units should be handled by a single function or macro (allowing for overloading for different types). Ad hoc conversions must be avoided.
|
|
|
|
|
|
In C++ "Strong" types can be used to represent types and prevent unintentional/incorrect conversion of types.
|
|
|
|
... | ... | |