thomasnield
12/18/2018, 9:28 PM(-4.0).pow(1.0/3.0)
, which returns NaN
due to lack of support for imaginary numbers. However, Java has Math.cbrt()
specifically for this purpose. Is this something Kotlin should explicitly support?ValV
12/24/2018, 10:30 PMEven without support for complex numbers, library functionisb.pow(x)
forNaN
andb < 0
is finite and not an integerx
pow
must understand x
as not an integer, I think