An open API service indexing awesome lists of open source software.

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.

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