Project

General

Profile

Actions

Feature #147

closed

Adding a "Mod1" function to Math/SMath

Added by R. Campbell over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
02/22/2017
Due date:
% Done:

0%

Estimated time:

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.

Actions #1

Updated by R. Campbell over 8 years ago

  • Description updated (diff)
Actions #2

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 #3

Updated by R. Campbell over 8 years ago

  • Description updated (diff)
Actions #4

Updated by R. Campbell over 8 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF