Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / kotlin.Float
Go to reference

Extensions for kotlin.Float

coerceAtLeast

Same as coerceAtLeast, but accepts Attribute and returns a new Attribute.

fun Float.coerceAtLeast(minimumValue: Attribute<Float>): Attribute<Float>

coerceAtMost

Same as coerceAtMost, but accepts Attribute and returns a new Attribute.

fun Float.coerceAtMost(maximumValue: Attribute<Float>): Attribute<Float>

coerceIn

Same as coerceIn, but accepts Attribute and returns a new Attribute.

fun Float.coerceIn(minimumValue: Attribute<Float>, maximumValue: Attribute<Float>): Attribute<Float>
fun Float.coerceIn(minimumValue: Attribute<Float>, maximumValue: Float): Attribute<Float>
fun Float.coerceIn(minimumValue: Float, maximumValue: Attribute<Float>): Attribute<Float>

compareTo

Same as compareTo, but accepts Attribute and returns a new Attribute.

fun Float.compareTo(other: Attribute<Byte>): Attribute<Int>
fun Float.compareTo(other: Attribute<Double>): Attribute<Int>
fun Float.compareTo(other: Attribute<Int>): Attribute<Int>
fun Float.compareTo(other: Attribute<Long>): Attribute<Int>
fun Float.compareTo(other: Attribute<Short>): Attribute<Int>
fun Float.compareTo(other: Attribute<Float>): Attribute<Int>

div

Same as div, but accepts Attribute and returns a new Attribute.

operator fun Float.div(other: Attribute<Byte>): Attribute<Float>
operator fun Float.div(other: Attribute<Double>): Attribute<Double>
operator fun Float.div(other: Attribute<Int>): Attribute<Float>
operator fun Float.div(other: Attribute<Long>): Attribute<Float>
operator fun Float.div(other: Attribute<Short>): Attribute<Float>
operator fun Float.div(other: Attribute<Float>): Attribute<Float>

IEEErem

Same as IEEErem, but accepts Attribute and returns a new Attribute.

fun Float.IEEErem(divisor: Attribute<Float>): Attribute<Float>

minus

Same as minus, but accepts Attribute and returns a new Attribute.

operator fun Float.minus(other: Attribute<Byte>): Attribute<Float>
operator fun Float.minus(other: Attribute<Double>): Attribute<Double>
operator fun Float.minus(other: Attribute<Int>): Attribute<Float>
operator fun Float.minus(other: Attribute<Long>): Attribute<Float>
operator fun Float.minus(other: Attribute<Short>): Attribute<Float>
operator fun Float.minus(other: Attribute<Float>): Attribute<Float>

nextTowards

Same as nextTowards, but accepts Attribute and returns a new Attribute.

fun Float.nextTowards(to: Attribute<Float>): Attribute<Float>

plus

Same as plus, but accepts Attribute and returns a new Attribute.

operator fun Float.plus(other: Attribute<Byte>): Attribute<Float>
operator fun Float.plus(other: Attribute<Double>): Attribute<Double>
operator fun Float.plus(other: Attribute<Int>): Attribute<Float>
operator fun Float.plus(other: Attribute<Long>): Attribute<Float>
operator fun Float.plus(other: Attribute<Short>): Attribute<Float>
operator fun Float.plus(other: Attribute<Float>): Attribute<Float>

pow

Same as pow, but accepts Attribute and returns a new Attribute.

fun Float.pow(n: Attribute<Int>): Attribute<Float>
fun Float.pow(x: Attribute<Float>): Attribute<Float>

rangeTo

Same as rangeTo, but accepts Attribute and returns a new Attribute.

operator fun Float.rangeTo(that: Attribute<Float>): Attribute<ClosedFloatingPointRange<Float>>

rem

Same as rem, but accepts Attribute and returns a new Attribute.

operator fun Float.rem(other: Attribute<Byte>): Attribute<Float>
operator fun Float.rem(other: Attribute<Double>): Attribute<Double>
operator fun Float.rem(other: Attribute<Int>): Attribute<Float>
operator fun Float.rem(other: Attribute<Long>): Attribute<Float>
operator fun Float.rem(other: Attribute<Short>): Attribute<Float>
operator fun Float.rem(other: Attribute<Float>): Attribute<Float>

times

Same as times, but accepts Attribute and returns a new Attribute.

operator fun Float.times(other: Attribute<Byte>): Attribute<Float>
operator fun Float.times(other: Attribute<Double>): Attribute<Double>
operator fun Float.times(other: Attribute<Int>): Attribute<Float>
operator fun Float.times(other: Attribute<Long>): Attribute<Float>
operator fun Float.times(other: Attribute<Short>): Attribute<Float>
operator fun Float.times(other: Attribute<Float>): Attribute<Float>

toBigDecimal

Same as toBigDecimal, but accepts Attribute and returns a new Attribute.

fun Float.toBigDecimal(mathContext: Attribute<MathContext>): Attribute<BigDecimal>

withSign

Same as withSign, but accepts Attribute and returns a new Attribute.

fun Float.withSign(sign: Attribute<Int>): Attribute<Float>
fun Float.withSign(sign: Attribute<Float>): Attribute<Float>