Android Guides | Samples

Android.Util.FloatMath Class

Math routines similar to those found in Math.

See Also: FloatMath

Syntax

[Android.Runtime.Register("android/util/FloatMath", DoNotGenerateAcw=true)]
public class FloatMath : Object

Remarks

Math routines similar to those found in Math.

Historically these methods were faster than the equivalent double-based Math methods. On versions of Android with a JIT they became slower and have since been re-implemented to wrap calls to Math. Math should be used in preference.

All methods were removed from the public API in version 23.

[Android Documentation]

Requirements

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

The members of Android.Util.FloatMath are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
Ceil(Single) : Single
Returns the float conversion of the most negative (i.e.
static
Cos(Single) : Single
Returns the closest float approximation of the cosine of the argument.
static
Exp(Single) : Single
Returns the closest float approximation of the raising "e" to the power of the argument.
static
Floor(Single) : Single
Returns the float conversion of the most positive (i.e.
static
Hypot(Single, Single) : Single
Returns sqrt(x2+y2).
static
Pow(Single, Single) : Single
Returns the closest float approximation of the result of raising x to the power of y.
static
Sin(Single) : Single
Returns the closest float approximation of the sine of the argument.
static
Sqrt(Single) : Single
Returns the closest float approximation of the square root of the argument.