Describe the bug
When exponentiation with Long.MIN_VALUE is requested, invalid result is returned. This is caused by using `Long.absoluteValue()' internally, which has the following special case:
Long.MIN_VALUE.absoluteValue is Long.MIN_VALUE due to an overflow
This then causes the loop to be skipped because the range has no elements.
To Reproduce
Use .pow(Long.MIN_VALUE) and observe immediate return.
Expected behavior
Operation is properly calculated
Describe the bug When exponentiation with Long.MIN_VALUE is requested, invalid result is returned. This is caused by using `Long.absoluteValue()' internally, which has the following special case:
This then causes the loop to be skipped because the range has no elements.
To Reproduce Use
.pow(Long.MIN_VALUE)
and observe immediate return.Expected behavior Operation is properly calculated
Platform All