Functions > Utility Functions > Example: Unit Conversion Using SIUnitsOf
  
Example: Unit Conversion Using SIUnitsOf
Use the SIUnitsOf function to return the dimensions of the input argument scaled to the default SI unit system, regardless of your chosen unit system.
* 
The base dimensions of the default SI unit system are Meter (m), Kilogram (Kg), seconds (s), and Amperes (A).
1. Show the definition of the permittivity constant in the SI unit system.
Click to copy this expression
2. On the Math tab, in the Units group, click Unit System. Set the unit system to SI.
3. Apply the SIUnitsOf function to constant E.
Click to copy this expression
4. Verify that the result is:
Click to copy this expression
* 
The scaling is performed on the units of E and not on its value! Thus the value of 8.854x10-12 is ignored by the SIUnitsOf function.
5. Click inside the math region containing the SIUnitsOf, then set the unit system to USCS.
6. Verify that the result is:
Click to copy this expression
This result is obtained because:
Click to copy this expression
7. Click inside the math region containing the SIUnitsOf, then set the unit system to CGS.
8. Verify that the result is 1.
This result is obtained because the CGS unit system uses the units Centimeter, Gram, Seconds. Substituting 1m=100cm and 1kg=1000gm we get:
Click to copy this expression
The result of the above multiplication yields no units, and that's why the SIUnitsOf function returns 1.
9. Show that dividing a constant by the SIUnitsOf of that constant returns a unitless constant value:
Click to copy this expression
Click to copy this expression