D
Dave Thompson
[ solution using LCC-extension qfloat -- rejected as nonstandard ]Groovy hepcat jacob navia was jivin' on Sat, 30 Aug 2003 12:49:42
+0200 in comp.lang.c.
Re: power of a large int and a modular airthmetic problems.'s a cool
scene! Dig it!
Just plain wrong. pow() is a function that takes, as I said, two
doubles and returns a double. Look it up in the standard, K&R or any
other decent C book.
In C99 (which IIRC Jacob's LCC partially implements) pow(), like all
<math.h> functions, is optionally (if you use <tgmath.h>) type-generic
across all the standard floating-point (real and complex) types.
Jacob's extension to qfloat is nonstandard since qfloat itself is, but
I think quite in the spirit of the standard.
- David.Thompson1 at worldnet.att.net