Unit Conversion
DScript converts all quantities with units to the base unit system before any calculations are carried out. The base units include the seven SI (International System of Units) base units (meter, kilogram, second, ampere, kelvin, mole, and candela) and an eighth unit, dollars.
| Quantity | Name | Symbol |
|---|---|---|
| Length | meter | m |
| Mass | kilogram | kg |
| Time | second | sec |
| Electric current | ampere | amp |
| Temperature | kelvin | kelvin |
| Amount of substance | mole | mol |
| Luminous intensity | candela | cd |
| Monetary value | dollars | $ |
All units of measure are created from this base set. For example, a foot is defined as 0.3048 m and an acre is 4046.85 m^2.
In evaluating the expression:
DScript first converts all quantities to the base unit system. This process, called unit conversion, results in the expression
Now, the numeric values can be multiplied and the units can be canceled to yield the result 66,115.70 $.
See Units of Measure.