Method | Description | |
---|---|---|
Add ( object m, object n ) : object |
Adds the specified numbers.
|
|
BitwiseAnd ( object m, object n ) : object |
Bitwise ANDs (&) the specified integral values.
|
|
BitwiseNot ( object number ) : object |
Returns the bitwise not (~) of the supplied number.
|
|
BitwiseOr ( object m, object n ) : object |
Bitwise ORs (|) the specified integral values.
|
|
BitwiseXor ( object m, object n ) : object |
Bitwise XORs (^) the specified integral values.
|
|
CanConvertToDecimal ( object number ) : bool |
Determines whether the supplied number can be converted to an integer.
|
|
CanConvertToInteger ( object number ) : bool |
Determines whether the supplied number can be converted to an integer.
|
|
CanConvertToNumber ( object number ) : bool |
Determines whether the supplied number can be converted to a number.
|
|
CoerceTypes ( object &m, object &n ) : void |
Coerces the types so they can be compared.
|
|
Divide ( object m, object n ) : object |
Divides the specified numbers.
|
|
IsDecimal ( object number ) : bool |
Determines whether the supplied number is a decimal number.
|
|
IsInteger ( object number ) : bool |
Determines whether the supplied number is an integer.
|
|
IsNumber ( object number ) : bool |
Determines whether the supplied number is of numeric type.
|
|
IsZero ( object number ) : bool |
Is the supplied number equal to zero (0)?
|
|
Modulus ( object m, object n ) : object |
Calculates remainder for the specified numbers.
|
|
Multiply ( object m, object n ) : object |
Multiplies the specified numbers.
|
|
Negate ( object number ) : object |
Negates the supplied number.
|
|
Power ( object m, object n ) : object |
Raises first number to the power of the second one.
|
|
Subtract ( object m, object n ) : object |
Subtracts the specified numbers.
|
Method | Description | |
---|---|---|
NumberUtils ( ) : System |
Creates a new instance of the Spring.Util.NumberUtils class. This is a utility class, and as such exposes no public constructors. |
public static Add ( object m, object n ) : object | ||
m | object | The first number. |
n | object | The second number. |
return | object |
public static BitwiseAnd ( object m, object n ) : object | ||
m | object | The first number. |
n | object | The second number. |
return | object |
public static BitwiseNot ( object number ) : object | ||
number | object | The number. |
return | object |
public static BitwiseOr ( object m, object n ) : object | ||
m | object | The first number. |
n | object | The second number. |
return | object |
public static BitwiseXor ( object m, object n ) : object | ||
m | object | The first number. |
n | object | The second number. |
return | object |
public static CanConvertToDecimal ( object number ) : bool | ||
number | object | The object to check. |
return | bool |
public static CanConvertToInteger ( object number ) : bool | ||
number | object | The object to check. |
return | bool |
public static CanConvertToNumber ( object number ) : bool | ||
number | object | The object to check. |
return | bool |
public static CoerceTypes ( object &m, object &n ) : void | ||
m | object | The right. |
n | object | The left. |
return | void |
public static Divide ( object m, object n ) : object | ||
m | object | The first number. |
n | object | The second number. |
return | object |
public static IsDecimal ( object number ) : bool | ||
number | object | The object to check. |
return | bool |
public static IsInteger ( object number ) : bool | ||
number | object | The object to check. |
return | bool |
public static IsNumber ( object number ) : bool | ||
number | object | The object to check. |
return | bool |
public static IsZero ( object number ) : bool | ||
number | object | The number to check. |
return | bool |
public static Modulus ( object m, object n ) : object | ||
m | object | The first number (dividend). |
n | object | The second number (divisor). |
return | object |
public static Multiply ( object m, object n ) : object | ||
m | object | The first number. |
n | object | The second number. |
return | object |
public static Negate ( object number ) : object | ||
number | object | The number to negate. |
return | object |
public static Power ( object m, object n ) : object | ||
m | object | The first number. |
n | object | The second number. |
return | object |
public static Subtract ( object m, object n ) : object | ||
m | object | The first number. |
n | object | The second number. |
return | object |