{"id":31799977,"url":"https://github.com/janlelis/unicode-numeric_value","last_synced_at":"2025-10-10T22:57:29.761Z","repository":{"id":59158573,"uuid":"56375233","full_name":"janlelis/unicode-numeric_value","owner":"janlelis","description":"Convert a Unicode character into its numeric value","archived":false,"fork":false,"pushed_at":"2025-09-09T15:17:10.000Z","size":148,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-21T21:23:21.589Z","etag":null,"topics":["numbers","numeric","ruby","unicode","unicode-data","value"],"latest_commit_sha":null,"homepage":"https://character.construction/numbers","language":"Ruby","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/janlelis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-04-16T09:14:36.000Z","updated_at":"2025-09-09T15:17:12.000Z","dependencies_parsed_at":"2025-09-09T17:12:14.302Z","dependency_job_id":"f8e0db43-ad7a-4ffc-bda6-bb13858ba12d","html_url":"https://github.com/janlelis/unicode-numeric_value","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/janlelis/unicode-numeric_value","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Funicode-numeric_value","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Funicode-numeric_value/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Funicode-numeric_value/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Funicode-numeric_value/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janlelis","download_url":"https://codeload.github.com/janlelis/unicode-numeric_value/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Funicode-numeric_value/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002359,"owners_count":26083357,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["numbers","numeric","ruby","unicode","unicode-data","value"],"created_at":"2025-10-10T22:57:28.467Z","updated_at":"2025-10-10T22:57:29.736Z","avatar_url":"https://github.com/janlelis.png","language":"Ruby","readme":"# Unicode::NumericValue [![[version]](https://badge.fury.io/rb/unicode-numeric_value.svg)](https://badge.fury.io/rb/unicode-numeric_value)  [![[ci]](https://github.com/janlelis/unicode-numeric_value/workflows/Test/badge.svg)](https://github.com/janlelis/unicode-numeric_value/actions?query=workflow%3ATest)\n\nConvert a Unicode character into its numeric value.\n\nUnicode version: **17.0.0** (September 2025)\n\n## Gemfile\n\n```ruby\ngem \"unicode-numeric_value\"\n```\n\n## Usage\n\nCan return Integer, Rational or nil:\n\n```ruby\nrequire \"unicode/numeric_value\"\n\nUnicode::NumericValue.of(\"1\") # =\u003e 1\nUnicode::NumericValue.of(\"Ⅷ\") # =\u003e 8\nUnicode::NumericValue.of(\"⓳\") # =\u003e 19\nUnicode::NumericValue.of(\"¾\") # =\u003e (3/4)\nUnicode::NumericValue.of(\"༳\") # =\u003e (-1/2)\nUnicode::NumericValue.of(\"𑿀\") # =\u003e (1/320)\nUnicode::NumericValue.of(\"𖭡\") # =\u003e 1000000000000\nUnicode::NumericValue.of(\"五\") # =\u003e 5\nUnicode::NumericValue.of(\"𜳷\") # =\u003e 7\nUnicode::NumericValue.of(\"A\") # =\u003e nil\n```\n\n## All Numeric Values\n\nSee a list of all numbers in Unicode: [character.construction/numbers](https://character.construction/numbers)\n\nGenerated with:\n\n```ruby\nrequire \"unicode/numeric_value\"\nrequire \"unicode/name\" # https://github.com/janlelis/unicode-name\n\nputs \"Codepoint | Character | Numeric Value | Name\\n\" \\\n     \"----------|-----------|---------------|-----\\n\" +\n    Unicode::NumericValue.chars.map{ |char|\n      [\n        format(\"U+%.4X\", char.unpack(\"U\")[0]).rjust(9),\n        char.rjust(9),\n        Unicode::NumericValue.of(char).inspect.rjust(13),\n        Unicode::Name.of(char)\n      ].join(\" | \")\n    }.join(\"\\n\")\n```\n\n\n## Also See\n\n- [unicode-x](https://github.com/janlelis/unicode-x): more Unicode related micro libraries\n\n## MIT License\n\n- Copyright (C) 2016-2025 Jan Lelis \u003chttps://janlelis.com\u003e. Released under the MIT license.\n- Unicode data: https://www.unicode.org/copyright.html#Exhibit1\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanlelis%2Funicode-numeric_value","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanlelis%2Funicode-numeric_value","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanlelis%2Funicode-numeric_value/lists"}