Actions
Feature #147
closedAdding a "Mod1" function to Math/SMath
Start date:
02/22/2017
Due date:
% Done:
0%
Estimated time:
Forum topic:
Description
There are two obvious definitions of the "IntegerPartOf" function; round towards zero or round towards -infinity. Both are implemented (as Math.Trunc & Math.Floor), which is very convenient, and avoids pointless discussion about which is "better".
However only one of the corresponding "FractionalPartOf" functions is provided (Math.Frac).
This is a proposal to add the other function under the name Math.Mod1. There would be no back-compatibility issues.
In addition, it is proposed to add mappings for SMath runtime errors similar to Math in System/Rsrc/Strings.
Proposed by Robert, 22-Feb-2017.
Updated by J. Templ over 8 years ago
- Subject changed from Adding a "Fraction" function to SystemMath to Adding a "Mod1" function to Math/SMath
- Description updated (diff)
Actions