Skip to content

Commit

Permalink
Define DBL_MAX in lib_financial.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaulgilman committed Oct 21, 2024
1 parent 89d473b commit a8b13d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared/lib_financial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <limits>
#include "lib_financial.h"

#ifndef WIN32
#include <float.h>
#endif

double libfin::min(double a, double b)
{ // handle NaN
if ((a != a) || (b != b))
Expand Down

0 comments on commit a8b13d1

Please sign in to comment.