Share via


StrictMath.NextDown Method

Definition

Overloads

NextDown(Double)

Returns the floating-point value adjacent to d in the direction of negative infinity.

NextDown(Single)

Returns the floating-point value adjacent to f in the direction of negative infinity.

NextDown(Double)

Returns the floating-point value adjacent to d in the direction of negative infinity.

[Android.Runtime.Register("nextDown", "(D)D", "", ApiSince=24)]
public static double NextDown(double d);

Parameters

d
Double

starting floating-point value

Returns

The adjacent floating-point value closer to negative infinity.

Attributes

Remarks

Returns the floating-point value adjacent to d in the direction of negative infinity. This method is semantically equivalent to nextAfter(d, Double.NEGATIVE_INFINITY); however, a nextDown implementation may run faster than its equivalent nextAfter call.

Special Cases: <ul> <li> If the argument is NaN, the result is NaN.

<li> If the argument is negative infinity, the result is negative infinity.

<li> If the argument is zero, the result is -Double.MIN_VALUE</ul>

Added in 1.8.

Java documentation for java.lang.StrictMath.nextDown(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

.NET for Android .NET for Android API 36 and other versions
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35, .NET for Android API 36

NextDown(Single)

Returns the floating-point value adjacent to f in the direction of negative infinity.

[Android.Runtime.Register("nextDown", "(F)F", "", ApiSince=24)]
public static float NextDown(float f);

Parameters

f
Single

starting floating-point value

Returns

The adjacent floating-point value closer to negative infinity.

Attributes

Remarks

Returns the floating-point value adjacent to f in the direction of negative infinity. This method is semantically equivalent to nextAfter(f, Float.NEGATIVE_INFINITY); however, a nextDown implementation may run faster than its equivalent nextAfter call.

Special Cases: <ul> <li> If the argument is NaN, the result is NaN.

<li> If the argument is negative infinity, the result is negative infinity.

<li> If the argument is zero, the result is -Float.MIN_VALUE</ul>

Added in 1.8.

Java documentation for java.lang.StrictMath.nextDown(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

.NET for Android .NET for Android API 36 and other versions
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35, .NET for Android API 36