IntExtensions
Extension methods for Int.
Attributes
- Graph
-
- Supertypes
-
class AnyValtrait Matchableclass Any
Members list
Value members
Concrete methods
More useful definition of modulus where a negative number divided by a positive divisor produces a non negative modulus.
More useful definition of modulus where a negative number divided by a positive divisor produces a non negative modulus.
Attributes
Base32 string representation of this Int.
Base32 string representation of this Int.
Attributes
Takes this Int as a value in arc degrees and converts it to a value of radians.
Takes this Int as a value in arc degrees and converts it to a value of radians.
Attributes
Takes this Int as a value in arc degrees and converts it to a value of arc seconds.
Takes this Int as a value in arc degrees and converts it to a value of arc seconds.
Attributes
Dividing by 4 gives remainder of 0.
Dividing by 4 gives remainder of 0.
Attributes
Dividing by 4 gives remainder of 2.
Dividing by 4 gives remainder of 2.
Attributes
Divides rounding up. 11.divRoundUp(10) == 2;
Divides rounding up. 11.divRoundUp(10) == 2;
Attributes
folds across the Integer range starting with this Int to the given end of range.
folds across the Integer range starting with this Int to the given end of range.
Attributes
folds across the Integer range starting with this Int until the given end of range.
folds across the Integer range starting with this Int until the given end of range.
Attributes
French Ordinal abbreviated form. "1er" / "1re", "2e", "3e", "4e", etc.
French Ordinal abbreviated form. "1er" / "1re", "2e", "3e", "4e", etc.
Attributes
Returns the first lazily evaluated parameter if this Int is 0 else returns the second lazily evaluated parameter.
Returns the first lazily evaluated parameter if this Int is 0 else returns the second lazily evaluated parameter.
Attributes
Returns the first lazily evaluated parameter if this Int is even else returns the second lazily evaluated parameter.
Returns the first lazily evaluated parameter if this Int is even else returns the second lazily evaluated parameter.
Attributes
if the predicate is true apply the function to this Int, else return thisInt unmodified.
if the predicate is true apply the function to this Int, else return thisInt unmodified.
Attributes
Returns the first lazily evaluated parameter if this Int is odd else returns the second lazily evaluated parameter.
Returns the first lazily evaluated parameter if this Int is odd else returns the second lazily evaluated parameter.
Attributes
Returns true if this Int is even, false if this Int is odd.
Returns true if this Int is even, false if this Int is odd.
Attributes
Returns true if this Int is even, false if this Int is odd.
Returns true if this Int is even, false if this Int is odd.
Attributes
Returns the value or 0, if this Int less than 0.
Returns the value or 0, if this Int less than 0.
Attributes
Returns the value or 0, if this Int more than 0.
Returns the value or 0, if this Int more than 0.
Attributes
Ordinal abbreviated form. "1st", "2nd", "3rd", "4th", etc.
Ordinal abbreviated form. "1st", "2nd", "3rd", "4th", etc.
Attributes
Only use positive value that won't overflow int)
Only use positive value that won't overflow int)
Attributes
Takes this Int as a value in radians and converts it to a value of arc degrees.
Takes this Int as a value in radians and converts it to a value of arc degrees.
Attributes
Takes this Int as a value in radians and converts it to a value of arc seconds.
Takes this Int as a value in radians and converts it to a value of arc seconds.
Attributes
Decrements the value of an integer while that integer does not match condition. Not guaranteed to terminate.
Decrements the value of an integer while that integer does not match condition. Not guaranteed to terminate.
Attributes
Increments the value of an integer while that integer does not match condition. Not guaranteed to terminate.
Increments the value of an integer while that integer does not match condition. Not guaranteed to terminate.
Attributes
Takes this Int as a value in arc deconds and converts it to a value of arc degrees.
Takes this Int as a value in arc deconds and converts it to a value of arc degrees.
Attributes
Takes this Int as a value in arc seconds and converts it to a value of radians.
Takes this Int as a value in arc seconds and converts it to a value of radians.