powr(2.0, 2.0) = 4.0 powr(-2.0, 2.0) = ? Please tell me. The documentation is not quite clear. Thanks
Asked
Active
Viewed 25 times
1 Answers
0
The docs say that the first parameter (base) needs to be between 0.f
and 256.f
. You can't use it with a negative input.
P.S. RenderScript has been deprecated - https://developer.android.com/guide/topics/renderscript/migrate. You may want to consider this before writing further code using it.

Stephen Hines
- 2,612
- 1
- 13
- 12
-
That's what I'm doing right now. I'm migrating a project from Renderscript to Vulkan. – Yevgeny Antonov Feb 02 '22 at 10:29