         )
     }
 
+    /**
+     Returns milligram `[mg]` mass unit.
+     
+     - author: Michal Konturek
+     */
     public static var milligram: MassUnit {
         return MassUnit(
             name: "milligram",

        )
    }

    public static var decagram: MassUnit {
        return MassUnit(
            name: "decagram",


extension NSNumber {

    /**
     Returns instance converted as megagram quantity.
     
     - author: Michal Konturek
     */
    public func megagram() -> Quantity {
        return Quantity(amount: self, unit: MassUnit.megagram)
    }

    /**
     Returns instance converted as kilogram quantity.
     
     - author: Michal Konturek
     */
    public func kilogram() -> Quantity {
        return Quantity(amount: self, unit: MassUnit.kilogram)
    }

    /**
     Returns instance converted as decagram quantity.
     
     - author: Michal Konturek
     */
    public func decagram() -> Quantity {
        return Quantity(amount: self, unit: MassUnit.decagram)
    }

    /**
     Returns instance converted as gram quantity.
     
     - author: Michal Konturek
     */
    public func gram() -> Quantity {
        return Quantity(amount: self, unit: MassUnit.gram)
    }

    /**
     Returns instance converted as milligram quantity.
     
     - author: Michal Konturek
     */
    public func milligram() -> Quantity {
        return Quantity(amount: self, unit: MassUnit.milligram)
    }
