From the source code, I learn that Number is “Superclass for all platform classes representing numeric values”.
1.We can say Number’s Value, but we cannot say Value’s Number.
So value is a property of number.
2.A number should be comparable.
interface Value interface Comparable abstract class Number : Value, Comparable
val a = 0 ?: 0.1 // a is Number
val a = 0 ?: 0.1 // a is Any
I’m not going to change the API.
I just want to ask if it’s right that I comprehend.