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

Extensions for kotlin.Double

coerceAtLeast

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

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

coerceAtMost

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

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

coerceIn

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

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

compareTo

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

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

div

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

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

IEEErem

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

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

minus

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

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

nextTowards

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

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

plus

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

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

pow

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

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

rangeTo

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

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

rem

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

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

times

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

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

toBigDecimal

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

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

withSign

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

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