On Wed, 18 Feb 1998, Chuck Reed wrote: >base = (GET_LEVEL(ch) / total_levels) * GET_EXP(victim); > >However, one small problem. When I do the GET_LEVEL(ch) / total_levels it >usually turns out a 0.*** like its supposed to. I thought that it would >just accept that and continue the operation with the decimal, multiply by >GET_EXP, get another decimal (like 1300.76) and knock it down to an integer You'll have to do some casting to (float). -- George Greer - Me@Null.net | Genius may have its limitations, but stupidity http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST