{"record":{"id":"9df06de35121b84d","repo":"streamlit/streamlit","slug":"value-name-value-is-not-a-float","errorCode":null,"errorMessage":"{value_name} ({value}) is not a float","messagePattern":"(.+?) \\((.+?)\\) is not a float","errorType":"validation","errorClass":"JSNumberBoundsException","httpStatus":null,"severity":"error","filePath":"lib/streamlit/elements/lib/js_number.py","lineNumber":97,"sourceCode":"        Parameters\n        ----------\n        value : float\n        value_name : str or None\n            The name of the value parameter. If specified, this will be used\n            in any exception that is thrown.\n\n        Raises\n        ------\n        JSNumberBoundsException\n            Raised with a human-readable explanation if the value falls outside\n            JavaScript float bounds.\n\n        \"\"\"\n        if value_name is None:\n            value_name = \"value\"\n\n        if not isinstance(value, (numbers.Integral, float)):\n            raise JSNumberBoundsException(f\"{value_name} ({value}) is not a float\")\n        if value < cls.MIN_NEGATIVE_VALUE:\n            raise JSNumberBoundsException(\n                f\"{value_name} ({value}) must be >= -1.797e+308\"\n            )\n        if value > cls.MAX_VALUE:\n            raise JSNumberBoundsException(\n                f\"{value_name} ({value}) must be <= 1.797e+308\"\n            )\n","sourceCodeStart":79,"sourceCodeEnd":106,"githubUrl":"https://github.com/streamlit/streamlit/blob/202661fc552db98c2ba0bb0e113d619689baf9de/lib/streamlit/elements/lib/js_number.py#L79-L106","documentation":"Error \"{value_name} ({value}) is not a float\" thrown in streamlit/streamlit.","triggerScenarios":"Thrown at lib/streamlit/elements/lib/js_number.py:97 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"202661fc552db98c2ba0bb0e113d619689baf9de","analyzedAt":"2026-08-26T09:13:21.291Z","schemaVersion":2},"datasetVersion":"2026-08-26T14:46:13.012Z"}