+ 1
Why doesn't it show -1
https://sololearn.com/compiler-playground/cGVhFR23IZu3/?ref=app
1 Antwort
0
The square root of -1 is a complex number. That is what the output tells you.
When working with float numbers, keep in mind the limits of floating point precision.