calculator/src/CalcManager/Ratpack
Rudy Huyn 7a7ceb5888 Modify how modulo is calculated in Normal and Scientific mode. (#412)
## Fixes #111

> The modulo operator on this calculator gives the result that is different to the most used calculators.

The current `modrate` function is the equivalent of rem(...)/remainder(...), not mod(...)/modulo(...) available in some popular Math apps. 

### Description of the changes:
- rename `modrate` in `remrate` to be more accurate.
- add `modrate`, calculating modulo similarly to Matlab, Bing, Google calculator, Maxima, Wolfram Alpha and Microsoft Excel 
- Add `RationalMath::Mod` using `modrate` as an alternative to `Rational::operator%` using `remrate`
- Add a helper `SIGN` to retrieve the sign of a `Rational`.
- modify `CalcEngine` to use `modrate` in Normal and Scientific mode and `remrate` in Programmer mode.

### How changes were validated:
- manually and unit tests added
2019-04-16 17:17:24 -07:00
..
basex.cpp Replace custom types with standard ones (#212) 2019-03-26 14:30:46 -07:00
CalcErr.h Replace custom types with standard ones (#212) 2019-03-26 14:30:46 -07:00
conv.cpp Add additional defines for MSVC ARM and ARM64 to conv.cpp (#399) 2019-03-28 11:17:06 -07:00
exp.cpp Modify how modulo is calculated in Normal and Scientific mode. (#412) 2019-04-16 17:17:24 -07:00
fact.cpp Modify how modulo is calculated in Normal and Scientific mode. (#412) 2019-04-16 17:17:24 -07:00
itrans.cpp Modify how modulo is calculated in Normal and Scientific mode. (#412) 2019-04-16 17:17:24 -07:00
itransh.cpp Updating comments per the C++ core guidelines and removing trailing whitespace (#194) 2019-03-14 23:30:07 -07:00
logic.cpp Modify how modulo is calculated in Normal and Scientific mode. (#412) 2019-04-16 17:17:24 -07:00
num.cpp Replace custom types with standard ones (#212) 2019-03-26 14:30:46 -07:00
rat.cpp Updating comments per the C++ core guidelines and removing trailing whitespace (#194) 2019-03-14 23:30:07 -07:00
ratconst.h Replace custom types with standard ones (#212) 2019-03-26 14:30:46 -07:00
ratpak.h Modify how modulo is calculated in Normal and Scientific mode. (#412) 2019-04-16 17:17:24 -07:00
support.cpp Modify how modulo is calculated in Normal and Scientific mode. (#412) 2019-04-16 17:17:24 -07:00
trans.cpp Replace custom types with standard ones (#212) 2019-03-26 14:30:46 -07:00
transh.cpp Replace custom types with standard ones (#212) 2019-03-26 14:30:46 -07:00