Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Yahoo!

Members: 0
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
Evoru (32)
Related Links
» SmaugMuds.org » General » Coding » Snippet: Convert number to st...
Forum Rules | Mark all | Recent Posts

Snippet: Convert number to string
< Newer Topic :: Older Topic > Example: 23 = twenty-three

Pages:<< prev 1 next >>
Post is unread #1 Feb 6, 2004, 12:44 am
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

Here you guys go.

This is also set for SMAUGers

What it does? Take, for example, 12345.
It turns it into: twelve thousand, three hundred and forty-five

http://www.kenetix.biz/~sorxorith/numtotxt.c

This function has been Valgrinded and strictly tested. There should be no bugs. If you break it, you buy it

-- Xorith

Edit: Wow, caught a typo in this post. Only been how many months?
       
Post is unread #2 Feb 6, 2004, 1:48 am
Go to the top of the page
Go to the bottom of the page

Adjani

GroupAFKMud Team
Posts9
JoinedApr 25, 2002

You're still a damn weirdo.
       
Post is unread #3 Feb 6, 2004, 2:03 am
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

Well FYT, Adjani *g*

And... *cough* I did find a bug. 100 would equal one hundred and zero. This has been since fixed

-- Xorith
       
Post is unread #4 Feb 6, 2004, 11:11 am
Go to the top of the page
Go to the bottom of the page

Tavon

GroupMembers
Posts3
JoinedFeb 5, 2004

Oh, Xorith. You're so awesome.

       
Post is unread #5 Feb 8, 2004, 9:13 pm
Go to the top of the page
Go to the bottom of the page

Adjani

GroupAFKMud Team
Posts9
JoinedApr 25, 2002

Well FYT, Adjani *g*


Only in your wildest dreams!
       
Post is unread #6 Feb 8, 2004, 9:14 pm
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

HEY! How do you know about....

Nevermind...

Erm...

hey! Look! A struct!
       
Post is unread #7 Feb 8, 2004, 9:34 pm
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

LIES! Her signature is all LIES!

Well...

I plead the 5th, 6th, AND 7th.
       
Post is unread #8 Feb 8, 2004, 9:38 pm
Go to the top of the page
Go to the bottom of the page

Adjani

GroupAFKMud Team
Posts9
JoinedApr 25, 2002

You wish it was lies.
       
Post is unread #9 Feb 9, 2004, 2:21 am
Go to the top of the page
Go to the bottom of the page

RapidRunner

GroupMembers
Posts72
JoinedDec 4, 2003

LOL
       
Post is unread #10 Sep 5, 2004, 7:52 am
Go to the top of the page
Go to the bottom of the page

cynshard

GroupMembers
Posts95
JoinedNov 19, 2003

Anyone have this sitting around? The link seems to be broken atm.

Thanks
Cynshard
       
Post is unread #11 Sep 9, 2004, 8:25 am
Go to the top of the page
Go to the bottom of the page

RapidRunner

GroupMembers
Posts72
JoinedDec 4, 2003

Its broken cause Xorith Broke it!!

Jking, he quit paying for the host cause he couldn't afford it anymore, or something to that affect, anyways..

So that url is no longer valid

Unless he lied to me!

*Blames Adjani*
       
Post is unread #12 Sep 17, 2004, 12:04 pm
Go to the top of the page
Go to the bottom of the page

Txzeenath
Apprentice
GroupMembers
Posts86
JoinedJul 24, 2004

Anyone happen to have a copy of this snippet sitting around?


For anyone who does:

If possible could you post it
       
Post is unread #13 Sep 20, 2004, 8:40 am
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

If I remember, I'll take a look when I get home for the snippet. It should be somewhere around there.

If not, I might consider rewriting it.

I'm sure I have it still, though, as I still have the 'super-improved' version of my MUD on my home box. The one I never got to run

       
Post is unread #14 Sep 21, 2004, 5:12 pm
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

I found the snippet.

I just need to find a place to host it

-- Xorith
       
Post is unread #15 Sep 22, 2004, 11:23 am
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

Gosh,

Was looking at the snippet while at work, and I see a few things that just don't add up.

Unfortunately, I don't have much of a way to test the snippet out. Let me know how it works, and I might do a slight modification to make it cleaner and better.

-- X
       
Pages:<< prev 1 next >>