> From: Justin <c616077@SHOWME.MISSOURI.EDU>
> To: CIRCLE@post.queensu.ca
> Subject: newbie C question
> Date: Sunday, July 13, 1997 1:34 PM
>
> Hello again folks.
>
> 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;
----------
I don't know what you want to do, but try:
(int)(GET_LVL(ch)/10+1);
My theory has always been, for sumthin like this, try a few things before
you ask 300 people for help.
Rob Baumstark: shirak@connect.ab.ca
cst0656@nait.ab.ca
Forsaken Realms: telnet://drewl.v-wave.com:4000
+-----------------------------------------------------------+
| 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