Unit Conversion

Base units

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 dollar $

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

(400ft*600ft)*12000*$/acre

DScript first converts all quantities to the base unit system. This process, called unit conversion, results in the expression

(121.92m*182.88m)*12000*1$/(4046.85(m^2))

Now, the numeric values can be multiplied and the units can be canceled to yield the result 66,115.70 $.