**Next message:**Mort: "Re: Limiting Multiplayers.."**Previous message:**David Sun: "Re: [OFFTOPIC] chmod"**Maybe in reply to:**Edward J Glamkowski: "exp formula"**Messages sorted by:**[ date ] [ thread ] [ subject ] [ author ]

>This does need the pow() function, so I'm not sure >how suitable that makes it (does the math library >generally come with most, if not all, compilers?) It does, the only problem with including math.h is that you have to redefine the log() function that is in circle Mud because in math.h the log() function is defined. As I use pow() in my perform_group_gain function, the simplest (not a clean way to do it, I know) way to do it, is to write my own pow function (I use it only with an integer exponent, i.e.. (double)^(integer)). x ^ 1.8 will require a more complex pow() function, then is better to use math.h Carlo Mocci - mocci@tin.it Kabir Coder of Dalila MUD dalila.shopitaly.net 4000 +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+

**Next message:**Mort: "Re: Limiting Multiplayers.."**Previous message:**David Sun: "Re: [OFFTOPIC] chmod"**Maybe in reply to:**Edward J Glamkowski: "exp formula"**Messages sorted by:**[ date ] [ thread ] [ subject ] [ author ]

*
This archive was generated by hypermail 2b30
: 12/15/00 PST
*