Representation of 128 bit floating point numbers in FreeBSD amd64 and Clang

Mehmet Erol Sanliturk m.e.sanliturk at gmail.com
Thu Oct 31 13:27:38 UTC 2013


Dear All ,


There are three kind of floating point numbers beside single precision
numbers :


http://en.wikipedia.org/wiki/Double_precision
( 64 bits )

http://en.wikipedia.org/wiki/Extended_precision
( 80 bits )


http://en.wikipedia.org/wiki/Quadruple-precision_floating-point_format
( 128 bits )


In Fortran , it is possible to define the following :

REAL ( KIND = 8 ) ,
DOUBLE PRECISION  : 64 bits ,

REAL ( KIND = 10 ) : 80 bits ,

REAL ( KIND = 16 ) : 128 bits ( 34 digits ) .


In FreeBSD amd64 and Clang ,
how can I represent 128 bits ( 34 digits ) variables ?


The following are available :

double : 17 digits
long double : 21 digits





Thank you very much .

Mehmet Erol Sanliturk


More information about the freebsd-numerics mailing list