Edoardo Luppi
08/09/2024, 9:44 AMpublic actual fun abs(n: Int): Int = if (n < 0) (-n or 0) else n
is not using nativeMath.abs(n) like its double or float counterparts?ephemient
08/09/2024, 5:28 PMabs(Int.MIN_VALUE)Edoardo Luppi
08/09/2024, 5:36 PMephemient
08/09/2024, 5:37 PMInt.MAX_VALUE + 1 value in an Int type would be pretty broken, so…Edoardo Luppi
08/09/2024, 5:37 PM