14f; int myInteger = (int)myFloat; The output of this code will be 3, ... different ways to convert a floating-point value to the nearest integer in Kotlin.
確定! 回上一頁