Socket
Book a DemoInstallSign in
Socket

aeonscope-number_to_fraction

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aeonscope-number_to_fraction

1.0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

= Overview

A helper that can format a number into a fraction. Unfortunately, this only handles the "pretty printing" of fractions less than 1/10th at the moment (as a better algorithm needs to be used for more complex number cases).

= License

Copyright (c) 2009 Brooke Kuhlmann of {Berserk Technologies}[http://www.berserktech.com]. See the included LICENSE for more info.

= History

See the CHANGELOG file for more info.

= Requirements

= Installation

Type the following from the command line to install:

  • UNIX: sudo gem install aeonscope-number_to_fraction
  • Windows: gem install aeonscope-number_to_fraction

Update your environment.rb file to include the new gem:

  • config.gem "aeonscope-number_to_fraction", :lib => "number_to_fraction", :source => "http://gems.github.com"

= Usage

Example:

number_to_fraction 3.75

Result:

3 3/4

View the Rspec test suite for more usage and examples.

= Contact/Feedback/Issues

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.