Java.Lang.Math.Ulp Method
Returns the argument's ulp (unit in the last place).

Syntax

[Android.Runtime.Register("ulp", "(D)D", "")]
public static double Ulp (double d)

Parameters

d
the floating-point value to compute ulp of.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the argument's ulp (unit in the last place). The size of a ulp of a double value is the positive distance between this value and the double value next larger in magnitude. For non-NaN x, ulp(-x) == ulp(x).

Special cases:

  • ulp(+0.0) = Double.MIN_VALUE
  • ulp(-0.0) = Double.MIN_VALUE
  • ulp(+infinity) = infinity
  • ulp(-infinity) = infinity
  • ulp(NaN) = NaN

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1