Float
Represents a single-precision 32-bit IEEE 754 floating point number.
Since Kotlin
1.0Represents a single-precision 32-bit IEEE 754 floating point number.
Since Kotlin
1.1Represents a single-precision 32-bit IEEE 754 floating point number. On the JVM, non-nullable values of this type are represented as values of the primitive type float
.
Since Kotlin
1.0Represents a single-precision 32-bit IEEE 754 floating point number.
Since Kotlin
1.3Represents a single-precision 32-bit IEEE 754 floating point number.
Since Kotlin
1.8Represents a single-precision 32-bit IEEE 754 floating point number.
Since Kotlin
1.8Types
Functions
Ensures that this value is not less than the specified minimumValue.
Ensures that this value is not greater than the specified maximumValue.
Ensures that this value lies in the specified range minimumValue..maximumValue.
Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.
Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.
Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.
Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.
Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.
Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.
Divides this value by the other value.
Divides this value by the other value.
Divides this value by the other value.
Divides this value by the other value.
Divides this value by the other value.
Divides this value by the other value.
Computes the remainder of division of this value by the divisor value according to the IEEE 754 standard.
Returns true
if the argument is a finite floating-point value; returns false
otherwise (for NaN
and infinity arguments).
Returns true
if the argument is a finite floating-point value; returns false
otherwise (for NaN
and infinity arguments).
Returns true
if the argument is a finite floating-point value; returns false
otherwise (for NaN
and infinity arguments).
Returns true
if the argument is a finite floating-point value; returns false
otherwise (for NaN
and infinity arguments).
Returns true
if the argument is a finite floating-point value; returns false
otherwise (for NaN
and infinity arguments).
Returns true
if this value is infinitely large in magnitude.
Returns true
if this value is infinitely large in magnitude.
Returns true
if this value is infinitely large in magnitude.
Returns true
if this value is infinitely large in magnitude.
Returns true
if this value is infinitely large in magnitude.
Returns true
if this value is infinitely large in magnitude.
Returns true
if the specified number is a Not-a-Number (NaN) value, false
otherwise.
Returns true
if the specified number is a Not-a-Number (NaN) value, false
otherwise.
Returns true
if the specified number is a Not-a-Number (NaN) value, false
otherwise.
Returns true
if the specified number is a Not-a-Number (NaN) value, false
otherwise.
Returns true
if the specified number is a Not-a-Number (NaN) value, false
otherwise.
Subtracts the other value from this value.
Subtracts the other value from this value.
Subtracts the other value from this value.
Subtracts the other value from this value.
Subtracts the other value from this value.
Subtracts the other value from this value.
Adds the other value to this value.
Adds the other value to this value.
Adds the other value to this value.
Adds the other value to this value.
Adds the other value to this value.
Adds the other value to this value.
Raises this value to the power x.
Raises this value to the integer power n.
Raises this value to the power x.
Raises this value to the integer power n.
Raises this value to the power x.
Raises this value to the integer power n.
Raises this value to the power x.
Raises this value to the integer power n.
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Rounds this Float value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Rounds this Float value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Rounds this Float value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Rounds this Float value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Rounds this Float value to the nearest integer and converts the result to Int. Ties are rounded towards positive infinity.
Rounds this Float value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Rounds this Float value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Rounds this Float value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Rounds this Float value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Rounds this Float value to the nearest integer and converts the result to Long. Ties are rounded towards positive infinity.
Multiplies this value by the other value.
Multiplies this value by the other value.
Multiplies this value by the other value.
Multiplies this value by the other value.
Multiplies this value by the other value.
Multiplies this value by the other value.
Returns the value of this Float number as a BigDecimal.
Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout.
Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout.
Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout.
Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout.
Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout.
Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout, preserving NaN
values exact layout.
Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout, preserving NaN
values exact layout.
Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout, preserving NaN
values exact layout.
Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout, preserving NaN
values exact layout.
Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout, preserving NaN
values exact layout.
Returns the string representation of this Float value.
Returns this value with the sign bit same as of the sign value.
Returns this value with the sign bit same as of the sign value.
Returns this value with the sign bit same as of the sign value.
Returns this value with the sign bit same as of the sign value.
Returns this value with the sign bit same as of the sign value.