ChoiceFormat.NextDouble 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
NextDouble(Double) |
Finds the least double greater than |
NextDouble(Double, Boolean) |
Finds the least double greater than |
NextDouble(Double)
Finds the least double greater than d
.
[Android.Runtime.Register("nextDouble", "(D)D", "")]
public static double NextDouble (double d);
[<Android.Runtime.Register("nextDouble", "(D)D", "")>]
static member NextDouble : double -> double
Parameters
- d
- Double
the reference value
Returns
the least double value greather than d
- Attributes
Remarks
Finds the least double greater than d
. If NaN
, returns same value.
Used to make half-open intervals.
Java documentation for java.text.ChoiceFormat.nextDouble(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.
Applies to
NextDouble(Double, Boolean)
Finds the least double greater than d
(if positive
is
true
), or the greatest double less than d
(if
positive
is false
).
[Android.Runtime.Register("nextDouble", "(DZ)D", "")]
public static double NextDouble (double d, bool positive);
[<Android.Runtime.Register("nextDouble", "(DZ)D", "")>]
static member NextDouble : double * bool -> double
Parameters
- d
- Double
the reference value
- positive
- Boolean
true
if the least double is desired;
false
otherwise
Returns
the least or greater double value
- Attributes
Remarks
Finds the least double greater than d
(if positive
is true
), or the greatest double less than d
(if positive
is false
). If NaN
, returns same value.
Java documentation for java.text.ChoiceFormat.nextDouble(double, boolean)
.
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.