{"id":23041411,"url":"https://github.com/giocip/sqrt","last_synced_at":"2025-07-29T08:08:15.762Z","repository":{"id":189929307,"uuid":"543984274","full_name":"giocip/sqrt","owner":"giocip","description":"Square root any precision","archived":false,"fork":false,"pushed_at":"2022-10-10T19:22:52.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T14:45:21.186Z","etag":null,"topics":["arithmetic","decimal","math","precision","python","school-education","sqrt","square-root"],"latest_commit_sha":null,"homepage":"","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/giocip.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-10-01T10:27:09.000Z","updated_at":"2022-12-21T09:17:31.000Z","dependencies_parsed_at":"2023-08-22T13:29:41.363Z","dependency_job_id":null,"html_url":"https://github.com/giocip/sqrt","commit_stats":null,"previous_names":["giocip/sqrt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giocip%2Fsqrt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giocip%2Fsqrt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giocip%2Fsqrt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giocip%2Fsqrt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giocip","download_url":"https://codeload.github.com/giocip/sqrt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246916739,"owners_count":20854511,"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":["arithmetic","decimal","math","precision","python","school-education","sqrt","square-root"],"created_at":"2024-12-15T19:33:38.031Z","updated_at":"2025-04-03T00:41:05.745Z","avatar_url":"https://github.com/giocip.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqrt\nSquare root any precision\n\n    '''\n        sqr(n, d = 3) function runs on python3 trying to be more human style\n        and so overcoming sqrt() integer arithmetic limits. (math library function)\n        The return root type may be int or string related to input one.\n        \n        It accepts 2 args (only the first mandatory). The first one is\n        the number what it's root run on. The second arg specifies the\n        exact digit number without rounding, required after the floating point\n        and it's applied only if the first arg is string typed:\n            sqr('2.0', d = 32)     root='1.41421356237309504880168872420969'   \n                                        (1.4142135623730951 sqrt math module) \n                                        (1.4142135623730950488016887242097 win10 calc)\n        \n        1st arg integer numeric strings are allowed of any length (32,64,128,512,1024,2048 digits\n        can be considered) and MUST BE SUFFIXED WITH .0 TO BE VALID:\n            sqr('12345678901234567890123456789012.0', d = 32)     root='3513641828820144.25311122238169983374820460606471'\n                                                                       (3513641828820144.0 sqrt math module) \n                                                                       (3513641828820144.2531112223816998 win10 calc)\n        \n        If your input is int:\n            sqr(12345678901234567890123456789012, d = 32)\n        you'll get only int result without decimals (d arg is disabled with int values also if it is specified):\n            root=3513641828820144\n        \n        Trying input:\n            sqr(12345678901234567890123456789012.0, d = 32)\n        \n        you'll get this error:\n            ValueError: 'float', type not valid: 1.2345678901234567e+31    \n            \n        Success with:\n            sqr('2.0001', 5)   root='1.41424' (string)\n            sqr('0.0', 32)     root='0.0'     (string)\n            sqr(0, 32)         root=0         (int)\n            sqr('0.01')        root='0.100'   (perfect square string)\n            sqr('625.0')       root='25.000'  (perfect square string)\n            sqr(625, 32)       root=25        (int perfect square)\n            sqr(+9, 32)        root=3         (int perfect square)\n        \n        Failure:\n            sqr('1.357e-05', 5) ValueError: Floating number format not valid: 1.357e-05 (Scientific Notation)\n            sqr(-4, 32)         ValueError: Negative number: -4\n            sqr(0.0, 32)        ValueError: 'float', type not valid: 0.0\n            sqr('+625.0', 32)   ValueError: Floating number format not valid: +625.0\n    '''                                       \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiocip%2Fsqrt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiocip%2Fsqrt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiocip%2Fsqrt/lists"}