Pure Programmer
Blue Matrix


Cluster Map

Project: Floating Point Underflow

Write a program to print the positive floating point value closest to 0 that is possible to represent accurately with [[IEEE doubles]]. Also print a value slightly closer to show that it becomes 0. Does the language produce an error or simply a warning on underflow?

Output
$ swiftc FloatingPointUnderflow.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution