|
Units: A Unit Conversion Program (4549 words) |
 | 2131 units, 53 prefixes, 24 nonlinear units You have: |
 | Dimensionless units are indicated by using the string !dimensionless for the unit definition. |
 | Some units conversions of interest are nonlinear; for example, temperature conversions between the Fahrenheit and Celsius scales cannot be done by simply multiplying by conversions factors. |
| Conversion of Units of Measurement (7803 words) |
 | Conversion of units must be done explicitly by the programmer; this can be both burdensome and error-prone, since the conversion factors used by the programmer might be entered incorrectly or might have limited accuracy. |
 | Unit conversion may also be required in preparing data for transmission to a remote site over a network, or for use in a remote procedure call. |
 | Conversion of units may generate extra multiplication operations; however, if the compiler performs constant folding [aho], these operations and their conversion factors can often be combined with other constants. |