https://github.com/sixarm/sixarm_ruby_metric_names
SixArm.com » Ruby » Metric names for numbers including kilo, mega, giga, terra, etc.
https://github.com/sixarm/sixarm_ruby_metric_names
gem metric names ruby
Last synced: 9 months ago
JSON representation
SixArm.com » Ruby » Metric names for numbers including kilo, mega, giga, terra, etc.
- Host: GitHub
- URL: https://github.com/sixarm/sixarm_ruby_metric_names
- Owner: SixArm
- License: other
- Created: 2010-10-17T09:47:59.000Z (over 15 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T09:20:16.000Z (about 1 year ago)
- Last Synced: 2025-04-14T10:30:12.269Z (about 1 year ago)
- Topics: gem, metric, names, ruby
- Language: Ruby
- Homepage: http://sixarm.com
- Size: 301 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# SixArm.com → Ruby →
Numeric extensions for metric names
* Doc:
* Gem:
* Repo:
## Introduction
Numeric extensions for metric names.
For docs go to
Want to help? We're happy to get pull requests.
## Install
### Gem
To install this gem in your shell or terminal:
gem install sixarm_ruby_metric_names
### Gemfile
To add this gem to your Gemfile:
gem 'sixarm_ruby_metric_names'
### Require
To require the gem in your code:
require 'sixarm_ruby_metric_names'
## Example
Convert a number to its metric name equivalent:
8.kilo #=> 5000
800.centi #=> 8