Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Error message "Overflow range error in pow" from Watcom 10.6
Ref. No. QNX.000006969
Category(ies) Development
Issue We are using QNX4, and Watcom 10.6.  An application displayed the following error message

Overflow range error in pow

What does this mean?


Solution pow() is a math function to raise a number to the power of another number and the error comes from the math library that contains the function definition for pow. In this case, it was likely that the input arguments generated ouput that were too large to fit in the variable provided, which generated the error.  You should check the numbers you are using/generating to make sure they fit in the expected output variable of pow (double).

See Also: pow() in Watcom C Library - N to Z