fun Double.withSign(sign: Double): Double
fun Float.withSign(sign: Float): Float
fun Double.withSign(sign: Int): Double
fun Float.withSign(sign: Int): Float
Returns this value with the sign bit same as of the sign value.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/with-sign.html