# FloatMath

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# FloatMath

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/util/FloatMath "View this page in Java")  

```
open class FloatMath
```

|---|--------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                   ||
| ↳ | [android.util.FloatMath](https://developer.android.com/reference/kotlin/android/util/FloatMath#) |

*** ** * ** ***

| **This class was deprecated in API level 22.**
|
| Use[java.lang.Math](https://developer.android.com/reference/kotlin/java/lang/Math.html#)instead.

Math routines similar to those found in[java.lang.Math](https://developer.android.com/reference/kotlin/java/lang/Math.html#).

Historically these methods were faster than the equivalent double-based[java.lang.Math](https://developer.android.com/reference/kotlin/java/lang/Math.html#)methods. On versions of Android with a JIT they became slower and have since been re-implemented to wrap calls to[java.lang.Math](https://developer.android.com/reference/kotlin/java/lang/Math.html#).[java.lang.Math](https://developer.android.com/reference/kotlin/java/lang/Math.html#)should be used in preference.

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

## Summary