At 02:34 PM 7/13/97 -0500, Justin wrote: >Really simple and quick question here. I'm type-casting and using defines >to get my number. How should the ()'s be placed? Here's an example of >what I'm doing: >should it be: (int)(GET_LVL(ch) / 10) + 1; >or should it be:(int)(GET_LVL(ch)) / 10 + 1; wouldn't these produce the same result? I am not sure but i think C follows most of the same rules as arithmetic (mult and div then add and sub). correct me if i'm wrong and i'm sure you will. +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list-faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST