You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public foreign handler MCMathFoundationExecRoundRealToNearest(inout Target as double) as undefined binds to "<builtin>"
6
4
public foreign handler MCMathFoundationExecRoundNumberToNearest(inout Target as number) as undefined binds to "<builtin>"
7
-
public foreign handler MCMathFoundationEvalFloorOfReal(in Target as double, out Value as double) as undefined binds to "<builtin>"
8
-
public foreign handler MCMathFoundationEvalFloorOfNumber(in Target as number, out Value as number) as undefined binds to "<builtin>"
9
-
public foreign handler MCMathFoundationEvalCeilOfReal(in Target as double, out Value as double) as undefined binds to "<builtin>"
10
-
public foreign handler MCMathFoundationEvalCeilOfNumber(in Target as number, out Value as number) as undefined binds to "<builtin>"
5
+
6
+
public foreign handler MCMathFoundationEvalRoundedRealToNearest(in Target as double, out Value as double) as undefined binds to "<builtin>"
7
+
public foreign handler MCMathFoundationEvalRoundedNumberToNearest(in Target as number, out Value as number) as undefined binds to "<builtin>"
8
+
9
+
public foreign handler MCMathFoundationEvalFloorReal(in Target as double, out Value as double) as undefined binds to "<builtin>"
10
+
public foreign handler MCMathFoundationEvalFloorNumber(in Target as number, out Value as number) as undefined binds to "<builtin>"
11
+
public foreign handler MCMathFoundationEvalCeilingReal(in Target as double, out Value as double) as undefined binds to "<builtin>"
12
+
public foreign handler MCMathFoundationEvalCeilingNumber(in Target as number, out Value as number) as undefined binds to "<builtin>"
11
13
12
14
--
13
15
14
-
//public constant pi is 3.14159265358979323846
16
+
//public constant pi = 3.14159265358979323846
15
17
16
18
--
17
19
18
20
/*
19
-
Rounds towards zero for negative numbers.
21
+
Summary: Rounds <Target> to the nearest integer.
22
+
Target: An expression that evaluates to a numeric container.
20
23
21
-
Summary: Rounds <Target> to the nearest integer, i.e. the greatest integer less than
22
-
or equal to <Target>, or the least integer greater than or equal to <Target>
23
-
depending on which is closest.
24
-
If <Target> is exactly halfway between two integers, rounds to the one with greatest
25
-
absolute value.
26
-
27
-
Target: An expression that evaluates to a number.
24
+
Description:
25
+
Replaces <Target> with the greatest integer less than or equal to <Target>, or the least integer greater than or equal to <Target> depending on which is closest. If <Target> is exactly halfway between two integers, rounds to the one with greatest absolute value.
28
26
29
27
*/
30
28
@@ -35,6 +33,23 @@ begin
35
33
MCMathFoundationExecRoundNumberToNearest(Target)
36
34
end syntax
37
35
36
+
/*
37
+
Summary: Rounds <Target> to the nearest integer.
38
+
Target: An expression that evaluates to a number.
39
+
output: The rounded value of <Target>
40
+
41
+
Description:
42
+
Return the greatest integer less than or equal to <Target>, or the least integer greater than or equal to <Target> depending on which is closest. If <Target> is exactly halfway between two integers, returns the one with greatest absolute value.
43
+
44
+
*/
45
+
46
+
syntax RoundedToNearest is prefix operator with precedence 1
0 commit comments