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

Extensions for kotlin.Float

coerceAtLeast

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

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

coerceAtMost

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

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

coerceIn

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

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

compareTo

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

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

div

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

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

IEEErem

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

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

minus

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

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

nextTowards

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

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

plus

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

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

pow

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

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

rangeTo

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

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

rem

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

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

times

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

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

toBigDecimal

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

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

withSign

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

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