I need to use pow in my c++ program and if i call the pow()
function this way:
long long test = pow(7, e);
Where
e is an integer value with the value of 23.
I always get 821077879
as a result. If i calculate it with the windows calculator i get 27368747340080916343
.. Whats wrong here? ):
I tried to cast to different types but nothing helped here... What could be the reason for this? How i can use pow()
correctly?
Thanks!