Math::FractionCalculator - grammar based fraction calculator
use Math::FractionCalculator;
Math::FractionCalculator.new.calc("1/2 + 1/3"); # gives 5/6
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.
cono q@cono.org.ua
Copyright 2019 cono
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.