Pure Programmer
Blue Matrix


Cluster Map

Project: Floating Point Overflow

Write a program to print the largest positive floating point value that is possible to represent accurately with [[IEEE doubles]]. Also print a value slightly larger to show what happens on overflow. Does the language produce an error or simply a warning on overflow?

Output
$ python3 FloatingPointOverflow.py Larg float: 1e+308 Larger float: inf Largest float: inf

Solution