[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /secure/simul_efun/query_number_and_ctime_elapsed.c</h2>
Cotains some simul_efuns.<p>Written by Pinkfish
<h2>Method index</h2>
<dl><ul>
<li><a href="#ctime_elapsed">ctime_elapsed</a>(int, int)<li><a href="#number_as_string">number_as_string</a>(int)<br/>
This method turns a number less than 100 into a string.
<li><a href="#query_num">query_num</a>(int, int)<br/>
This method turns a number into a string.
<li><a href="#query_times">query_times</a>(int)<br/>
Convert a number into a number of times.
<li><a href="#word_ordinal">word_ordinal</a>(int)<br/>
This method returns the ordinal of a number as a string (ie, "first",
"thirtieth", etc.
</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="ctime_elapsed">
ctime_elapsed</a><pre>
varargs string ctime_elapsed(int time_elapsed,
                             int mode)
</pre>
<ul><a name="number_as_string">
number_as_string</a><pre>
string number_as_string(int n)
</pre></br>
This method turns a number less than 100 into a string.  This function should
not be used.  It will only work for numbers less than 100.

<br/><ul>
<li><b>Parameters:</b>
<br/>n - the number to turn into a string
<li><b>Returns:</b>
<br/>the number as a nice string
<li><b>See also:</b>
<br/><a href="#query_num">query_num()
</a></dl>

<ul><a name="query_num">
query_num</a><pre>
string query_num(int n,
                 int limit)
</pre></br>
This method turns a number into a string.  It returns a string of the
form "one hundred and twenty four".  This function should be used and
not number_as_string below.
The limit argument is used to set the cut off point at which it will
print "many".

<br/><ul>
<li><b>Parameters:</b>
<br/>i - the number to return as a string
<br/>limit - the largest number to process
<li><b>Returns:</b>
<br/>the number as a nice string

</dl>

<ul><a name="query_times">
query_times</a><pre>
string query_times(int num)
</pre></br>
Convert a number into a number of times. eg. 1 = once, 2 = twice, 3 = three
times etc. etc.

<br/><ul>
<li><b>Parameters:</b>
<br/>the - number in question
<li><b>Returns:</b>
<br/>a string equivalent.

</dl>

<ul><a name="word_ordinal">
word_ordinal</a><pre>
string word_ordinal(int num)
</pre></br>
This method returns the ordinal of a number as a string (ie, "first",
"thirtieth", etc.)
<br/><ul>
<li><b>Parameters:</b>
<br/>n - the number for which you want the ordinal
<li><b>See also:</b>
<br/><a href="#query_num">query_num(), ordinal()
</a></dl>


[an error occurred while processing this directive]

