Function fromMega

Convert megaX to X.