How to add your knowledge

Units

    Table of contents
    No headers

    The Fusion API provides convenience functions for converting between units of measurement. Units of measurement are specified by a string in most configuration files, but the API uses a numeric code internally. These numeric codes are defined as attributes of the Fusion object. The following table lists the Fusion attribute and associated unit name and abbreviations that are associated with them.

    If the units are not specified, the default units are Fusion.UNKNOWN.

    Unit CodeNameAbbreviationValid Strings
    Fusion.UNKNOWNUnknownunkunknown
    Fusion.INCHESInchesininches inch in
    Fusion.FEETFeetftfeet ft
    Fusion.YARDSYardsydyards yard yd
    Fusion.MILESMilesmimiles mile mi
    Fusion.NAUTICALMILESNautical Milesnmnautical miles nautical mile nm
    Fusion.MILLIMETERSMillimetersmmmillimeters millimeter mm
    Fusion.CENTIMETERSCentimeterscmcentimeters centimeter cm
    Fusion.METERSMetersmmeters meter m
    Fusion.KILOMETERSKilometerskmkilometers kilometer km
    Fusion.DEGREESDegrees°degrees degree deg
    Fusion.DECIMALDEGREESDecimal Degrees°decimal degrees dd
    Fusion.DMSDegrees Minutes Seconds°degrees minutes seconds
    Fusion.PIXELSPixelspxpixels pixel px