The default converts to Double, but specific operators
may better preserve semantics and precision for other types such as Int and Long.
The default converts to Double, but specific operators
may better preserve semantics and precision for other types such as Int and Long.
Warning: Unlike a normal power operation, the signum of the left operand is always preserved. I.e.
DC.kr(-0.5).pow(2)will not output0.25but-0.25. This is to avoid problems with floating point noise and negative input numbers, soDC.kr(-0.5).pow(2.001)does not result in aNaN, for example.