**Mail Archives: djgpp/1996/01/24/11:23:45**
In article <30FF05D1 DOT 9381AFB AT alcyone DOT com>,
Erik Max Francis <max AT alcyone DOT com> wrote:
> Antonio Carlos Moreirao de Queiroz wrote:
>
>> Are the math functions (sqrtl, sinl, cosl, etc.) for long doubles
>> available? I am not finding their definition in math.h or in other
>> files of the djgpp distribution.
>> I see that the long double type is apparently supported. But
>> without the functions...
>
> Only the double-taking math functions are standard (with a few exceptions
> here and there). Functions based on float or long double are not specified
> by the ANSI C standard.
They ARE specified by the numerical extension to the standard though,
and will very likely make it into the next version of Standard C,
which probably will appear in 4-5 years or so.
And many compilers support these functions already.
Another interesting question: djgpp may support "long double", but does
it have any higher precision than plain "double"? The C standard allows
support of "long double" by keeping it to the same precision as plain
"double", but such "support" is of course not really very useful.
--
----------------------------------------------------------------
Paul Schlyter, Swedish Amateur Astronomer's Society (SAAF)
Grev Turegatan 40, S-114 38 Stockholm, SWEDEN
e-mail: pausch AT saaf DOT se psr AT home DOT ausys DOT se

*- Raw text -*