cono / p6-math-fractioncalculator

Atom Space internship task - Fraction Calculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

NAME

Math::FractionCalculator - grammar based fraction calculator

SYNOPSIS

use Math::FractionCalculator;

Math::FractionCalculator.new.calc("1/2 + 1/3"); # gives 5/6

DESCRIPTION

Math::FractionCalculator is a simple fraction calculator which understand only square brackets and +, -, /, * operators only.

Method calc takes string with expression and returns string result of a fraction.

AUTHOR

cono q@cono.org.ua

COPYRIGHT AND LICENSE

Copyright 2019 cono

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

About

Atom Space internship task - Fraction Calculator

License:Artistic License 2.0


Languages

Language:Perl 6 97.1%Language:Dockerfile 2.9%