Trial page
(Created page with "{| class="wikitable" !Operators !Description |- |'''Number::abs () : Number''' |Returns the absolute value of ''self'', ''self'' if...") |
No edit summary |
||
Line 18: | Line 18: | ||
|Returns the nearest integer to ''self'' if it is a Real, ''self'' if it is an Integer. | |Returns the nearest integer to ''self'' if it is a Real, ''self'' if it is an Integer. | ||
|- | |- | ||
|Number::ieeereminder(r:Number):Integer | |[https://wiki.mdriven.net/index.php/OCLOperators_Number::ieeereminder(r:Number):Integer '''Number::ieeereminder(r:Number):Integer'''] | ||
|Reminder of division with r, ie modulus or mod or % | |Reminder of division with r, ie modulus or mod or % | ||
|- | |- |
Revision as of 06:05, 8 May 2023
Operators | Description |
---|---|
Number::abs () : Number | Returns the absolute value of self, self if it is already a positive number. |
Number::floor () : Integer | Returns the integer part of self if it is a Real, self if it is an Integer. |
Number::max ( r : Number ) : Number | Returns the greatest number between self and *r*. |
Number::min ( r : Number ) : Number | Returns the lowest number between self and *r*. |
Number::round () : Integer | Returns the nearest integer to self if it is a Real, self if it is an Integer. |
Number::ieeereminder(r:Number):Integer | Reminder of division with r, ie modulus or mod or % |
Integer::div ( i : Integer ) : Integer | Returns the integer quotient of the division of self by *i*. |
Integer::mod ( i : Integer ) : Integer | Returns the integer remainder of the division of self by *i*. |
This page was edited more than 11 months ago on 02/10/2024. What links here