mercredi 7 novembre 2018

C++ function std::pow() returns inf instead of a value

I've got a problem with returned value by std::pow(). Basically, I have following line in the code:

std::pow(1.0033333333333334, -360)

And it returns inf. However, when I paste exactly the same line to Visual Studio watch while debugging it has a proper value of 0.30179586515268314. Does anyone know what's the source of this discrepancy?

Aucun commentaire:

Enregistrer un commentaire