Computations & Graphics, Inc.

double128 Math Library (SDK)


double128 Math Library (SDK) is 128-bit quad-precision math library that implements approximately 32 decimal place floating point arithmetic for Microsoft Visual Studio. The library includes a new floating point type double128 and a list of corresponding standard math functions such as sqrt(), pow(), sin() etc.. The implementation of the library is based on Intel C++ Compiler _Quad data type. The following table show a comparison among float, double and double128 types:

Parameter single double double128
Format width in bits 32 64 128
Sign width in bits 1 1 1
Mantissa 24 53 113
Exponent width in bits 8 11 15
Max value 3.40282 E38 1.79769 E308 1.18973 E4932
Min value 1.17549 E-38 2.22507 E-308 3.36210 E-4932
Epsilon 1.192092896 E-07 2.2204460492503131 E-016 1.9259299443872358530559779425849272 E-34

Key Features

  • Quad-precision (128-bit) floating point arithmetic in Visual C++, C# and VB.NET.
  • Supports basic I/O operations.
  • Supports Microsoft Visual Studio (2008 and up).
  • Reasonably priced and royalty-free on binary redistribution.

Example - Epsilon Computation


System Requirements


Operating System: Windows XP, Vista, Windows 7, Windows 8 or Windows 10