| Modifiers | Return Types | Method and Description |
|---|---|---|
public readonly |
(T) |
abs()Returns a non-negative version of the current value. |
public readonly |
(T) |
ceiling()Method to find the smallest value with no fractional part that is greater than or equal to the current value. |
public readonly |
(T) |
floor()Method to find the largest value with no fractional part that is less than or equal to the current value. |
public readonly |
(boolean) |
isFinite()Method to determine if the number represented is finite (neither infinite nor a not-a-number value). |
public readonly |
(boolean) |
isInfinite()Method to determine if the number represented is infinite but not a not-a-number value. |
public readonly |
(boolean) |
isNaN()Method to determine if the number represented is a not-a-number value. |
public readonly |
(T) |
round()Method to round the current value to the nearest integer. |
public readonly abs() => (T)
Returns a non-negative version of the current value.
non-negative value
public readonly ceiling() => (T)
Method to find the smallest value with no fractional part that is greater than or equal to the current value.
ceiling of the current value
public readonly floor() => (T)
Method to find the largest value with no fractional part that is less than or equal to the current value.
floor of the current value
public readonly isFinite() => (boolean)
Method to determine if the number represented is finite (neither infinite nor a not-a-number value).
true if the current value is finite
public readonly isInfinite() => (boolean)
Method to determine if the number represented is infinite but not a not-a-number value.
true if the current value is infinite
public readonly isNaN() => (boolean)
Method to determine if the number represented is a not-a-number value. These values are used to represent the result of undefined computations, such as the square root of a negative number or 0.0 / 0.0.
true if the current value is not a number
public readonly round() => (T)
Method to round the current value to the nearest integer.
current value rounded to the nearest integer