hi
i run the following code:
Code :
Math.pow(2,2)
why the output is 4.012 and not 4?
Printable View
hi
i run the following code:
Code :
Math.pow(2,2)
why the output is 4.012 and not 4?
The output I get is exactly 4. What is the exact code you're using? Perhaps there are computations which result either parameter to "about 2", which would throw the result off.
sorry, my mistake. it's print exactly 4.
thnks