- Kotlin Programming By Example
- Iyanu Adelekan
- 43字
- 2025-04-04 17:16:16
Float
This type represents a single precision 32-bit floating-point number. When used with a variable, this type specifies that the variable can only hold floating-point values. Its range is approximately ±3.40282347E+38F (6-7 significant decimal digits):
var pi: Float = 3.142