|
1 | | -nocol method add : obj1, obj2 => @float { |
| 1 | +global nocol method add : obj1, obj2 => @float { |
2 | 2 | return runexec EZCodeLanguage.EZHelp.Add ~> {obj1}, {obj2} |
3 | 3 | } |
4 | | -nocol method subtract : obj1, obj2 => @float { |
| 4 | +global nocol method subtract : obj1, obj2 => @float { |
5 | 5 | return runexec EZCodeLanguage.EZHelp.Subtract ~> {obj1}, {obj2} |
6 | 6 | } |
7 | | -nocol method multiply : obj1, obj2 => @float { |
| 7 | +global nocol method multiply : obj1, obj2 => @float { |
8 | 8 | return runexec EZCodeLanguage.EZHelp.Multiply ~> {obj1}, {obj2} |
9 | 9 | } |
10 | | -nocol method divide : obj1, obj2 => @float { |
| 10 | +global nocol method divide : obj1, obj2 => @float { |
11 | 11 | return runexec EZCodeLanguage.EZHelp.Divide ~> {obj1}, {obj2} |
12 | 12 | } |
13 | | -nocol method avg : ! @float:nums => @float { |
| 13 | +global nocol method avg : ! @float:nums => @float { |
14 | 14 | return runexec EZCodeLanguage.EZHelp.Average ~> {nums} |
15 | 15 | } |
16 | | -nocol method clamp : @float:val, @float:min, @float:max => @float { |
| 16 | +global nocol method clamp : @float:val, @float:min, @float:max => @float { |
17 | 17 | return runexec EZCodeLanguage.EZHelp.Clamp ~> {val}, {min}, {max} |
18 | 18 | } |
19 | | -method pi => @float { |
| 19 | +global nocol method random : @float:min, @float:max => @float { |
| 20 | + return runexec EZCodeLanguage.EZHelp.RandomNumber ~> {min}, {max} |
| 21 | +} |
| 22 | +global method pi => @float { |
20 | 23 | return runexec EZCodeLanguage.EZHelp.Pi |
21 | 24 | } |
22 | | -method logbase-e => @float { |
| 25 | +global method logbase-e => @float { |
23 | 26 | return runexec EZCodeLanguage.EZHelp.E |
24 | 27 | } |
25 | | -nocol method operate : @str:op, ! @float:obj => @float { |
| 28 | +global nocol method operate : @str:op, ! @float:obj => @float { |
26 | 29 | return runexec EZCodeLanguage.EZHelp.MathFunc ~> {obj}, {op} |
27 | 30 | } |
0 commit comments