power of a large int and a modular airthmetic problems.

D

Dave Thompson

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!
[ solution using LCC-extension qfloat -- rejected as nonstandard ]
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,573
Members
47,204
Latest member
MalorieSte

Latest Threads

Top