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

Extensions for kotlin.Double

coerceAtLeast

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

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

coerceAtMost

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

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

coerceIn

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

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

compareTo

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

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

div

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

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

IEEErem

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

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

minus

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

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

nextTowards

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

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

plus

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

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

pow

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

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

rangeTo

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

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

rem

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

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

times

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

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

toBigDecimal

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

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

withSign

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

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