{"id":22808264,"url":"https://github.com/sixarm/sixarm_ruby_numeric_percent","last_synced_at":"2025-03-30T21:15:41.182Z","repository":{"id":2223673,"uuid":"3174466","full_name":"SixArm/sixarm_ruby_numeric_percent","owner":"SixArm","description":"SixArm.com » Ruby » Numeric#percent to calculate percentage","archived":false,"fork":false,"pushed_at":"2023-09-15T19:28:39.000Z","size":238,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-06T00:24:42.083Z","etag":null,"topics":["extension","gem","numeric","percent","ruby"],"latest_commit_sha":null,"homepage":"http://sixarm.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SixArm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2012-01-13T21:25:48.000Z","updated_at":"2023-05-22T14:12:14.000Z","dependencies_parsed_at":"2023-07-05T19:17:23.312Z","dependency_job_id":null,"html_url":"https://github.com/SixArm/sixarm_ruby_numeric_percent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_numeric_percent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_numeric_percent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_numeric_percent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_numeric_percent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SixArm","download_url":"https://codeload.github.com/SixArm/sixarm_ruby_numeric_percent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246379366,"owners_count":20767696,"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":["extension","gem","numeric","percent","ruby"],"created_at":"2024-12-12T11:08:54.879Z","updated_at":"2025-03-30T21:15:41.164Z","avatar_url":"https://github.com/SixArm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SixArm.com → Ruby → \u003cbr\u003e Numeric#percent to calculate a percentage\n\n* Doc: \u003chttp://sixarm.com/sixarm_ruby_numeric_percent/doc\u003e\n* Gem: \u003chttp://rubygems.org/gems/sixarm_ruby_numeric_percent\u003e\n* Repo: \u003chttp://github.com/sixarm/sixarm_ruby_numeric_percent\u003e\n\u003c!--header-shut--\u003e\n\n\n## Introduction\n\nCalculate a number as percentage with rounding.\n\nFor docs go to \u003chttp://sixarm.com/sixarm_ruby_numeric_percent/doc\u003e\n\nWant to help? We're happy to get pull requests.\n\n\n\u003c!--install-open--\u003e\n\n## Install\n\n### Gem\n\nTo install this gem in your shell or terminal:\n\n    gem install sixarm_ruby_numeric_percent\n\n### Gemfile\n\nTo add this gem to your Gemfile:\n\n    gem 'sixarm_ruby_numeric_percent'\n\n### Require\n\nTo require the gem in your code:\n\n    require 'sixarm_ruby_numeric_percent'\n\n\u003c!--install-shut--\u003e\n\n\n## Examples\n\nPercent:\n\n    require \"sixarm_ruby_numeric_percent\"\n    x=0.1234\n    x.percent =\u003e 12\n\nOptional precision:\n\n    x.percent(nil) =\u003e 12 (default is to round to the closest integer)\n    x.percent(1) =\u003e 10\n    x.percent(2) =\u003e 12\n    x.percent(3) =\u003e 12.3\n    x.percent(3) =\u003e 12.34\n\nNote that precision 1 and 2 are optimized for speed and to return integers; \nother precisions return floats.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_numeric_percent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixarm%2Fsixarm_ruby_numeric_percent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_numeric_percent/lists"}