{"id":20049415,"url":"https://github.com/weaming/patch-json-float","last_synced_at":"2026-06-13T09:32:06.835Z","repository":{"id":57451057,"uuid":"215211848","full_name":"weaming/patch-json-float","owner":"weaming","description":"Patch builtin's float to kill gap between float and Decimal.","archived":false,"fork":false,"pushed_at":"2019-12-21T08:28:26.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-25T11:45:16.728Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weaming.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-15T05:11:33.000Z","updated_at":"2022-11-07T23:54:25.000Z","dependencies_parsed_at":"2022-09-26T17:31:25.598Z","dependency_job_id":null,"html_url":"https://github.com/weaming/patch-json-float","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weaming/patch-json-float","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpatch-json-float","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpatch-json-float/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpatch-json-float/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpatch-json-float/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weaming","download_url":"https://codeload.github.com/weaming/patch-json-float/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpatch-json-float/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34279898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T11:49:55.713Z","updated_at":"2026-06-13T09:32:06.819Z","avatar_url":"https://github.com/weaming.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Patch Python `float`\n\nA wrapper `Float` for `float` which will convert `float` to `decimal.Decimal` for every math calculation operations. No more `0.1 + 0.2 != 0.3` :smile:\n\n## Example\n\n```python\n\u003e\u003e\u003e import json\n\u003e\u003e\u003e from decimal import Decimal\n\u003e\u003e\u003e from patch_float import builtins_float, Float, patch_json_loads, patch_float_all\n\u003e\u003e\u003e (builtins_float, float, Float)\n(\u003cclass 'float'\u003e, \u003cclass 'float'\u003e, \u003cclass 'patch_float.Float'\u003e)\n\u003e\u003e\u003e (type(0.1), type(float(0.1)), type(json.loads('{\"a\": 0.1}')['a']))\n(\u003cclass 'float'\u003e, \u003cclass 'float'\u003e, \u003cclass 'float'\u003e)\n\u003e\u003e\u003e patch_float_all()\n==\u003e WARNING: patched builtins float\n\u003e\u003e\u003e (type(0.1), type(float(0.1)), type(json.loads('{\"a\": 0.1}')['a']))\n(\u003cclass 'float'\u003e, \u003cclass 'patch_float.Float'\u003e, \u003cclass 'patch_float.Float'\u003e)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweaming%2Fpatch-json-float","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweaming%2Fpatch-json-float","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweaming%2Fpatch-json-float/lists"}