[OT] Fixed Point Math ( was Re: semicircle )

Search this archive.

From: Clive Crous (ccrous@shoprite.co.za)
Date: Wed 01 Dec 1999 - 12:52:51 IST


hmmmm

I thought #define's where "pre-processed"
ie
i want to do this:
---
#define MYDEF (3*4)
---
and when i use "MYDEF" in the code it must put in a "7" not a "(3*4)"
is there a way to do this ?
why should I have computations done at run time, when they could be done at
compile time

thanks again
    Clive


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:22 IST