{"id":15442879,"url":"https://github.com/rohitxsh/pyclassicround","last_synced_at":"2025-03-28T07:25:51.389Z","repository":{"id":62579309,"uuid":"284344579","full_name":"rohitxsh/PyClassicRound","owner":"rohitxsh","description":"Current python 3's round function uses Banker's rounding, this package will help you to round off numbers the classical way.","archived":false,"fork":false,"pushed_at":"2020-10-25T18:30:49.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-18T13:16:39.535Z","etag":null,"topics":["python","python3","round","rounding"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/PyClassicRound/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rohitxsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-01T21:51:24.000Z","updated_at":"2023-03-04T09:35:20.000Z","dependencies_parsed_at":"2022-11-03T19:33:51.869Z","dependency_job_id":null,"html_url":"https://github.com/rohitxsh/PyClassicRound","commit_stats":null,"previous_names":["rohitxsh93/pyclassicround"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohitxsh%2FPyClassicRound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohitxsh%2FPyClassicRound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohitxsh%2FPyClassicRound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohitxsh%2FPyClassicRound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohitxsh","download_url":"https://codeload.github.com/rohitxsh/PyClassicRound/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245986705,"owners_count":20705262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["python","python3","round","rounding"],"created_at":"2024-10-01T19:31:08.672Z","updated_at":"2025-03-28T07:25:51.372Z","avatar_url":"https://github.com/rohitxsh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyClassicRound\r\n\r\nThe current implementation of round() function in Python 3 uses Banker's rounding i.e integers are rounded to the nearest even integer, this package allows you to round off numbers the classical way.\r\n\r\n[![Downloads](https://pepy.tech/badge/pyclassicround)](https://pepy.tech/project/pyclassicround)\r\n\r\n### Installation\r\n\r\nPyClassicRound has no dependencies.\r\n\r\n```sh\r\n\u003e pip install PyClassicRound\r\n```\r\n\r\n### Usage (example)\r\n\r\n```sh\r\n\u003e from PyClassicRound import classic_round\r\n\r\n\u003e classic_round(2.55, 1) #outputs 2.6 whereas python 3's round() outputs 2.5\r\n```\r\n#### OR\r\n\r\n```sh\r\n\u003e from PyClassicRound import classic_round as cround\r\n\r\n\u003e cround(2.55, 1) #outputs 2.6 whereas python 3's round() outputs 2.5\r\n```\r\n\r\n### Parameters\r\n\r\n- Number that needs to be rounded off\r\n- Upto how many decimal places (__optional__) (**defaults to 2 decimal points** (Hundredths Place))\r\n\r\nInput parameters can be in any format i.e. integer, float, string etc.\r\n\r\nOutput will be:\r\n- integer: if decimal point is 0\r\n- on successful operation: float\r\n- None: if the input value cannot be resolved / rounded off for ex. strings -\u003e (\"\", \" \", \"abc\")\r\n\r\n### License\r\nMIT\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohitxsh%2Fpyclassicround","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohitxsh%2Fpyclassicround","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohitxsh%2Fpyclassicround/lists"}