package

github.com/Nephos/rational

master / published Apr 13, 2017 / repository

Rational numbers implementation in crystal

rational

TODO: Write a description here

Installation

Add this to your application's shard.yml:

dependencies:
  rational:
    github: Nephos/rational

Usage

require "rational"

Rational.new(1) / Rational.new(2) # => 1/2

Development

TODO: Write development instructions here

Contributing

  1. Fork it ( https://github.com/Nephos/rational/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • Nephos Arthur Poulet - creator, maintainer

API

  • Int

    Int is the base type of all integer types.

  • Number

    The top-level number type.

  • Rational