Inf In C - Why does my calculation give 'inf' instead of a number? This code is meant to compute the mathematical constant e by adding inverse factorials: In the example below, we use the + operator to add together two values: Although the + operator is often used to add. However, this is not recommended; You should use the isfinite. Initialise your variables to recognisable default values, this is a practice which will often help you to find problems from using uninitialised variables. Move the tri_base= line and. Why does my calculation give 'inf' instead of a number? This code is meant to compute the mathematical constant e by adding inverse factorials:
Why does my calculation give 'inf' instead of a number? This code is meant to compute the mathematical constant e by adding inverse factorials: