StrictMath.GetExponent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetExponent(Single) |
Returns the unbiased exponent used in the representation of a
|
GetExponent(Double) |
Returns the unbiased exponent used in the representation of a
|
GetExponent(Single)
Returns the unbiased exponent used in the representation of a
float
.
[Android.Runtime.Register("getExponent", "(F)I", "")]
public static int GetExponent (float f);
[<Android.Runtime.Register("getExponent", "(F)I", "")>]
static member GetExponent : single -> int
Parameters
- f
- Single
a float
value
Returns
the unbiased exponent of the argument
- Attributes
Remarks
Returns the unbiased exponent used in the representation of a float
. Special cases:
<ul> <li>If the argument is NaN or infinite, then the result is Float#MAX_EXPONENT
+ 1. <li>If the argument is zero or subnormal, then the result is Float#MIN_EXPONENT
-1. </ul>
Added in 1.6.
Java documentation for java.lang.StrictMath.getExponent(float)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
GetExponent(Double)
Returns the unbiased exponent used in the representation of a
double
.
[Android.Runtime.Register("getExponent", "(D)I", "")]
public static int GetExponent (double d);
[<Android.Runtime.Register("getExponent", "(D)I", "")>]
static member GetExponent : double -> int
Parameters
- d
- Double
a double
value
Returns
the unbiased exponent of the argument
- Attributes
Remarks
Returns the unbiased exponent used in the representation of a double
. Special cases:
<ul> <li>If the argument is NaN or infinite, then the result is Double#MAX_EXPONENT
+ 1. <li>If the argument is zero or subnormal, then the result is Double#MIN_EXPONENT
-1. </ul>
Added in 1.6.
Java documentation for java.lang.StrictMath.getExponent(double)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.