withSign

inline actual fun Double.withSign(sign: Double): Double (source)

Platform and version requirements: Kotlin 1.2

inline actual fun Float.withSign(sign: Float): Float (source)

Platform and version requirements: Kotlin 1.2

Returns this value with the sign bit same as of the sign value.

If sign is NaN the sign of the result is undefined.

inline actual fun Double.withSign(sign: Int): Double (source)

Platform and version requirements: Kotlin 1.2

inline actual fun Float.withSign(sign: Int): Float (source)

Platform and version requirements: Kotlin 1.2

Returns this value with the sign bit same as of the sign value.