main.cpp |
Code used to generate manual values for 'correctly rounded' AbstractFloat
tests in the CTS.
These are generated in a C++ program, because it allows for easy access to
higher than 64-bit floating point numbers (specifically 128-bit), which
allows for calculating roundings when infinitely precise calculations are not
precisely representable in 64-bit floats. This gets around the fact that
numbers in Typescript are internally 64-bits, thus making it difficult to
detect when rounding occurs for AbstractFloats without importing a higher
precision floating point library.
This codes is not meant to be automatically built/used by the CTS, but
instead is a reference for how the values in af_data.ts were generated
|
10174 |