RE: [Circle] Number Formatting

From: Gary Barnett (
Date: 11/15/96

On Friday, November 15, 1996 7:29 PM, Bruce, Ray, Phil[] wrote:
>How do you format numbers and text on the screen?
>I'm in the proccess of creating a new score screen and I would like to have
>it in some kind of table screen... I know how to do tabs but there is ONE
>major thing that I would like to know how to do...
>How would I do this?
>Experience: [9999999] <----FULL Experience
>Experience: [  33421] <----NOT FULL Experience
>Experience: [      0] <----EMPTY Experience
>In other words, How do I make the number format to the right instead of
>left, and make it so that any number that is in GET_EXP it will fit in that

Your language docs should have this.. but here's the info:

 sprintf(buf, "Age  :%-3d\r\n",GET_AGE(ch));

 notice the %-3d .. the '-' signifies a right
 justify and the 3 is how many characters the
 column uses.. 

-- -- telnet:// 4000 --

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

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