of
Creates a Real out of decimal. See Real.of.
Creates an Integer out of integer. See Integer.of.
Creates a Numeric out of the given value, picking Integer or Real depending on its Kotlin type (Double/Float become Real, integral types become Integer; any other Number is converted via its Any.toString representation, then parsed like of would).
Parses number into a Numeric, trying Integer.of first and falling back to Real.of if that fails.