Android Question square root of negative number

gjoisa

Active Member
Licensed User
Longtime User
In my app I am trying to get the square root of a negative number which resuults value NaN . How to work out it ?
 

DonManfred

Expert
Licensed User
Longtime User
Without seeing any code you are using it is hard to help :)
Maybe it helps to use a positive calculation and then you multiply the result with -1
 
Upvote 0
Top