Feature #147

Adding a "Mod1" function to Math/SMath

Added by R. Campbell almost 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:02/22/2017
Priority:NormalDue date:
Assignee:R. Campbell% Done:

0%

Category:-
Target version:1.7.1
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.

Associated revisions

Revision 104c565a
Added by R. Campbell almost 2 years ago

Adding Fraction function to Math. Refs:#147.

Revision f416796a
Added by R. Campbell almost 2 years ago

Adding a "Mod1" function to Math/SMath. Refs: #147.

Revision 8c4f8423
Added by R. Campbell almost 2 years ago

Updated Strings file. Refs:#147.

Signed-off-by: Robert <>

Revision 9cdfbfda
Added by J. Templ almost 2 years ago

Adding a "Mod1" function to Math/SMath. Refs: #147.

Signed-off-by: Robert <>

Revision 457ed019
Added by R. Campbell almost 2 years ago

Merge pull request #154 from BlackBoxCenter/issue-#147

Adding a "Mod1" function to Math/SMath. Refs: #147.

History

#1 Updated by R. Campbell almost 2 years ago

  • Description updated (diff)

#2 Updated by J. Templ almost 2 years ago

  • Subject changed from Adding a "Fraction" function to SystemMath to Adding a "Mod1" function to Math/SMath
  • Description updated (diff)

#3 Updated by R. Campbell almost 2 years ago

  • Description updated (diff)

#4 Updated by R. Campbell almost 2 years ago

  • Status changed from New to Closed

Also available in: Atom PDF