{
    "Function": "toFixed",
    "File": "contracts/staking/libs/LibFixedMath.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "revert(string)",
        "_div",
        "revert(string)",
        "_mul"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function toFixed(uint256 n, uint256 d) internal pure returns (int256 f) {\n        if (int256(n) < int256(0)) {\n            revert(\"out-of-bounds\");\n        }\n        if (int256(d) < int256(0)) {\n            revert(\"out-of-bounds\");\n        }\n        f = _div(_mul(int256(n), FIXED_1), int256(d));\n    }"
}