Answers for "kotlin Number to Long"

1

kotlin Number to Long

val something: Any = getSomething()
if(something is Number) {
    val longValue = something.toLong()
}
Posted by: Guest on February-20-2021

Browse Popular Code Answers by Language