```\nfunction fromSystemPrecision(uint256 amount, uint8 precision)\n    private\n    pure\n    returns (uint256)\n{\n    if (precision > SYSTEM_PRECISION) {\n        return amount * (10**(precision - SYSTEM_PRECISION));\n    } else if (precision < SYSTEM_PRECISION) {\n        return amount / (10**(SYSTEM_PRECISION - precision));\n    } else {\n        return amount;\n    }\n}\n```\n