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

Syntax

[Android.Runtime.Register("ulp", "(F)F", "")]
public static float Ulp (float f)

Parameters

f
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 float value is the positive distance between this value and the float value next larger in magnitude. For non-NaN x, ulp(-x) == ulp(x).

Special cases:

  • ulp(+0.0) = Float.MIN_VALUE
  • ulp(-0.0) = Float.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