473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

digits to words

could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five......

Jan 24 '07 #1
21 2298
ARMAS wrote:
could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five......
Yes, but DYOH!

If you show us your effort so far, we'll be glad to help. But we would
never harm you in such a way as to do your homework for you, therefore
robbing you of a quality education that is costing you so dearly.

Jan 24 '07 #2


On Jan 24, 9:56 am, "user923005" <dcor...@connx.comwrote:
ARMAS wrote:
could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five......Yes, but DYOH!

If you show us your effort so far, we'll be glad to help. But we would
never harm you in such a way as to do your homework for you, therefore
robbing you of a quality education that is costing you so dearly.
>>ARMAS: ok xur.. I'll work on it.... and you better work on it too. hehehe.... pEACE brother!!!!
Jan 24 '07 #3
"ARMAS" <sm********@gmail.comwrites:
could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five......
Here's one I wrote a number of years ago.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char *ordinal (char buf[1024], unsigned value);

int
main (int argc, char *argv[])
{
char buf[1024];

if (argc != 2)
{
printf ("usage: ordinal <number>\n");
return EXIT_FAILURE;
}

ordinal (buf, atoi (argv[1]));
puts (buf);
return EXIT_SUCCESS;
}

char *
ordinal (char buf[1024], unsigned value)
{
static const char *const powers[]
= {"man", "oku"};

static const char *const values[][9] =
{
{"sen", 0, "sanzen", 0, 0, 0, 0, "hassen", 0},
{"hyaku", 0, "sanbyaku", 0, 0, "roppyaku", 0, "happyaku", 0},
{"juu", 0, 0, 0, 0, 0, 0, 0, 0},
{"ichi", "ni", "san", "yon", "go", "roku", "nana", "hachi", "kyuu"},
};

static const char *const *const ones = values[3];

char *cp = buf;

if (value == 0)
{
strcpy (buf, "rei");
return buf;
}

{
int part_stack[4];
int *part_ptr = part_stack;

for (; value; value /= 10000)
*part_ptr++ = value % 10000;

while (part_ptr part_stack)
{
int index[4];
int p, i;

p = *--part_ptr;
for (i = 3; i >= 0; i--)
{
index[i] = p % 10;
p /= 10;
}

for (i = 0; i < 4; i++)
{
int c = index[i];
if (c != 0)
{
if (values[i][c - 1] == 0)
cp += sprintf (cp, "%s%s ", ones[c - 1], values[i][0]);
else
cp += sprintf (cp, "%s ", values[i][c - 1]);
}
}

if (*part_ptr && part_ptr part_stack)
cp += sprintf (cp, "%s ", powers[part_ptr - part_stack - 1]);
}
}

cp[-1] = 0;
return buf;
}

/*
Local variables:
compile-command: "gcc -W -Wall -ansi -pedantic ordinal-jp.c -o ordinal-jp"
End:
*/

--
"Am I missing something?"
--Dan Pop
Jan 24 '07 #4
are you japanese, chinese or whatever?????

Jan 24 '07 #5
On Jan 23, 6:07 pm, Ben Pfaff <b...@cs.stanford.eduwrote:
"ARMAS" <smart.a...@gmail.comwrites:
could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five......Here's one I wrote a number of years ago.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char *ordinal (char buf[1024], unsigned value);

int
main (int argc, char *argv[])
{
char buf[1024];

if (argc != 2)
{
printf ("usage: ordinal <number>\n");
return EXIT_FAILURE;
}

ordinal (buf, atoi (argv[1]));
puts (buf);
return EXIT_SUCCESS;

}char *
ordinal (char buf[1024], unsigned value)
{
static const char *const powers[]
= {"man", "oku"};

static const char *const values[][9] =
{
{"sen", 0, "sanzen", 0, 0, 0, 0, "hassen", 0},
{"hyaku", 0, "sanbyaku", 0, 0, "roppyaku", 0, "happyaku", 0},
{"juu", 0, 0, 0, 0, 0, 0, 0, 0},
{"ichi", "ni", "san", "yon", "go", "roku", "nana", "hachi", "kyuu"},
{"ichi", "ni", "san", "she", ...

Unless there is a dialect I do not know about.
};

static const char *const *const ones = values[3];

char *cp = buf;

if (value == 0)
{
strcpy (buf, "rei");
return buf;
}

{
int part_stack[4];
int *part_ptr = part_stack;

for (; value; value /= 10000)
*part_ptr++ = value % 10000;

while (part_ptr part_stack)
{
int index[4];
int p, i;

p = *--part_ptr;
for (i = 3; i >= 0; i--)
{
index[i] = p % 10;
p /= 10;
}

for (i = 0; i < 4; i++)
{
int c = index[i];
if (c != 0)
{
if (values[i][c - 1] == 0)
cp += sprintf (cp, "%s%s ", ones[c - 1], values[i][0]);
else
cp += sprintf (cp, "%s ", values[i][c - 1]);
}
}

if (*part_ptr && part_ptr part_stack)
cp += sprintf (cp, "%s ", powers[part_ptr - part_stack - 1]);
}
}

cp[-1] = 0;
return buf;

}/*
Local variables:
compile-command: "gcc -W -Wall -ansi -pedantic ordinal-jp.c -o ordinal-jp"
End:
*/

--
"Am I missing something?"
--Dan Pop
Jan 24 '07 #6
"ARMAS" <sm********@gmail.comwrites:
On Jan 24, 9:56 am, "user923005" <dcor...@connx.comwrote:
ARMAS wrote:
could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five......Yes, but DYOH!
If you show us your effort so far, we'll be glad to help. But we would
never harm you in such a way as to do your homework for you, therefore
robbing you of a quality education that is costing you so dearly.
>ARMAS: ok xur.. I'll work on it.... and you better work on it too. hehehe.... pEACE brother!!!!
Please learn to quote properly. Those ">" characters aren't
decorative; they indicate that you're quoting something that someone
else wrote.

"you better work on it too"? I don't think so. If you ask for our
help, we might give it to you; if you demand it, you're on your own.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jan 24 '07 #7


On Jan 24, 10:22 am, Keith Thompson <k...@mib.orgwrote:
"ARMAS" <smart.a...@gmail.comwrites:
On Jan 24, 9:56 am, "user923005" <dcor...@connx.comwrote:
ARMAS wrote:
could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five......Yes, but DYOH!
If you show us your effort so far, we'll be glad to help. But we would
never harm you in such a way as to do your homework for you, therefore
robbing you of a quality education that is costing you so dearly.
>>ARMAS: ok xur.. I'll work on it.... and you better work on it too. hehehe.... pEACE brother!!!!Please learn to quote properly. Those ">" characters aren't
decorative; they indicate that you're quoting something that someone
else wrote.

"you better work on it too"? I don't think so. If you ask for our
help, we might give it to you; if you demand it, you're on your own.

--
Keith Thompson (The_Other_Keith) k...@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.

I'm just a begginer... I'm sorry if i don't know that much... I've got
two words for you though: "suck it"

Jan 24 '07 #8
On Jan 23, 6:31 pm, "ARMAS" <smart.a...@gmail.comwrote:
On Jan 24, 10:22 am, Keith Thompson <k...@mib.orgwrote:
"ARMAS" <smart.a...@gmail.comwrites:
On Jan 24, 9:56 am, "user923005" <dcor...@connx.comwrote:
ARMAS wrote:
could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five......Yes, but DYOH!
If you show us your effort so far, we'll be glad to help. But we would
never harm you in such a way as to do your homework for you, therefore
robbing you of a quality education that is costing you so dearly.
>ARMAS: ok xur.. I'll work on it.... and you better work on it too. hehehe.... pEACE brother!!!!Please learn to quote properly. Those ">" characters aren't
decorative; they indicate that you're quoting something that someone
else wrote.
"you better work on it too"? I don't think so. If you ask for our
help, we might give it to you; if you demand it, you're on your own.
--
Keith Thompson (The_Other_Keith) k...@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.I'm just a begginer... I'm sorry if i don't know that much... I've got
two words for you though: "suck it"
Normally, you would have earned an almighty *plonk* but I can tell that
this is going to be *really* funny to watch, so I'll leave the door
open for a while.

Jan 24 '07 #9
"ARMAS" <sm********@gmail.comwrites:
On Jan 24, 10:22 am, Keith Thompson <k...@mib.orgwrote:
[...]
"you better work on it too"? I don't think so. If you ask for our
help, we might give it to you; if you demand it, you're on your own.
[...]
I'm just a begginer... I'm sorry if i don't know that much... I've got
two words for you though: "suck it"
Thus endeth the lesson.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jan 24 '07 #10
In article <11**********************@13g2000cwe.googlegroups. com>,
ARMAS <sm********@gmail.comwrote:
>could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five......
Here's pseudo-code to get you started:

IF input = 1 THEN puts("one");
IF input = 2 THEN puts("two");
IF input = 3 THEN puts("three");
IF input = 4 THEN puts("four");

Just keep going like this - it should not be too hard.

Jan 24 '07 #11
ARMAS wrote:
>
could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five......
char *IntToEnglish(int i)
{
switch(i)
{
case 0: return "zero";
case 1: return "one";
case 2: return "two";
case 1435: return "one thousand four hundred thirty five";
default: return "unknown number";
}
}

Extend as needed.

Replace English words with Roman numerals for your other homework
problem. ie:

case 1: return "I";
case 2: return "II";
case 1435: return "MCDXXXV";

--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h|
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>
Jan 24 '07 #12
/* I say we give this poor kid a hand: */
#include<stdlib.h>
#include<stdio.h>
#include<math.h>
#include<float.h>
extern char*q0(long double q1);static void q2(int q1,char*q3);static
char q4??(1024??),*q5;static const char*q6??(??)=??<
"\132\
\145\162\157","\117\156\145","\124\167\157","\124\ 150\162\145\145",
"\106\157\165\162","\106\151\166\145","\123\151\17 0",
"\123\145\166\145\156","\105\151\147\150\164","\11 6\151\156\145",
"\124\145\
\156","\105\154\145\166\145\156","\124\167\145\154 \166\145",
"\124\150\151\162\164\145\145\156","\106\157\165\1 62\164\145\145\156",
"\106\151\146\164\145\145\156","\123\151\170\164\1 45\145\156",
"\123\145\166\145\156\164\145\
\145\156","\105\151\147\150\164\145\145\156",
"\116\151\156\145\164\145\145\156"??>;static const char*q7??(??)=??<
"\124\167\145\156\164\171","\124\150\151\162\164\1 71",
"\106\157\162\164\171","\106\151\146\164\171","\12 3\151\170\164\171",
"\123\145\166\145\156\164\171","\105\151\147\150\1 64\171",
"\116\151\156\145\164\171"??>;typedef struct q8??<long double q9;char*
q10;??>q11;static const q11 q12??(??)=??<??<1e00,""??>,??<1e03,
"\124\150\157\165\163\141\156\144"??>,??<1e06,
"\115\151\154\154\151\157\156"??>,??<1e09,
"\102\151\154\154\151\157\156"??>,??<1e12,
"\124\162\151\154\154\151\157\156"??>,??<1e15,
"\121\165\141\144\162\151\154\154\
\151\157\156"??>,??<1e18,
"\121\165\151\156\164\151\154\154\151\157\156"??>, ??<1e21,
"\123\145\170\164\151\154\154\151\157\156"??>,??<1 e24,
"\123\145\160\164\151\154\154\151\157\156"??>,??<1 e27,
"\117\143\164\151\154\154\151\157\156"??>,??<1 e30,
"\116\157\156\151\154\154\151\157\156"??>,??<1 e33,
"\104\145\143\151\154\154\151\157\156"??>,??<1 e36,
"\125\156\144\145\143\
\151\154\154\151\157\156"??>,??<1e39,
"\104\165\157\144\145\143\151\154\154\151\157\156" ??>,??<1e42,
"\124\162\145\144\145\143\151\154\154\151\157\156" ??>,??<1e45,
"\121\165\141\164\164\165\157\162\
\144\145\143\151\154\154\151\157\156"??>,??<1e48,
"\121\165\151\156\144\145\143\151\154\154\151\157\ 156"??>,??<1e51,
"\123\145\170\144\145\143\151\154\154\151\157\156" ??>,??<1e54,
"\123\145\160\164\
\145\156\144\145\143\151\154\154\151\157\156"??>,? ?<1e57,
"\117\143\164\157\144\145\143\151\154\154\151\157\ 156"??>,??<1e60,
"\116\157\166\145\155\144\145\143\151\154\154\151\ 157\156"??>,??<1e63,
"\
\126\151\147\151\156\164\151\154\154\151\157\156"? ?>??>;static void q2
(int,char*);char*q0(long double q1)??<int q14;int q15;int q16;long
double q17;long double q18=((long double)modf((double)(q1),(double*)(&
q17)));long double q19;*q4='\0';q5=q4;if(q1<0)??<q1=-q1;*q5='-';q5++;*
q5=0;??>q19=((long double)log10((double)(q1)));q16=((int)q19)/3;if(q16
>21)??<puts("\105\162\162\157\162\41\40\40\125\156 \141\142\154\145\40"
"\164\157\40\160\162\157\143\145\163\163\40\156\16 5\155\142\145\162"
"\163\40\164\150\
\141\164\40\154\141\162\147\145\56\n");exit(1);??> if(q19>15)??<puts(
"\127\141\162\156\151\156\147\41\40\40\114\157\163 \163\40\157\146\40"
"\141\143\143\165\162\141\143\
\171\40\151\156\40\143\141\154\143\165\154\141\164 \151\157\156\56\n");
??>for(q15=q16;q15>0;q15--)??<q14=(int)(q1/q12??(q15??).q9);if(q14)??<
q2(q14,q12??(q15??).q10);q1=((long double)fmod((double)(q1),(double)(
q12??(q15??).q9)));??>??>q2((int)q1,"");if(q4==q5) q5+=sprintf(q5,
"\45\163\40",q6??(0??));q14=(int)(q18*100.+.5);spr intf(q5,
"\46\40\45\60\62\144\57\61\60\60",q14);return q4;??>static void q2(int
q1,char*q3)??<if(q4!=q5)*q5++=' ';if(100<=q1)??<q5+=sprintf(q5,
"\45\163\40\110\165\156\144\162\145\144\40",q6??(q 1/100??));q1%=100;
??>if(20<=q1)??<q5+=sprintf(q5,"\45\163",q7??((q1-20)/10??));if(0!=(q1
%=10))??<q5+=sprintf(q5,"\55\45\163\40",q6??(q1??) );??>else q5+=
sprintf(q5,"\45\163","\40");??>else if(q1)??<q5+=sprintf(q5,
"\45\163\40",q6??(q1??));??>q5+=sprintf(q5,"\45\16 3",q3);??>int main(
int q20,char*q21??(??))??<while(--q20)??<long double q1=atof(*(++q21))
;printf(
"\146\155\164\137\155\157\156\145"
"\171\50\45\114\147\51\40\75\40\45\163\n"
,q1,q0(q1));??>return 0;??>

Jan 24 '07 #13
"user923005" <dc*****@connx.comwrites:
On Jan 23, 6:07 pm, Ben Pfaff <b...@cs.stanford.eduwrote:
> {"ichi", "ni", "san", "yon", "go", "roku", "nana", "hachi", "kyuu"},

{"ichi", "ni", "san", "she", ...

Unless there is a dialect I do not know about.
I'm fairly sure about this, having taken a couple of years of
Japenese when I was an undergrad. If you want more information,
putting "shi yon" into Google is informative.
--
int main(void){char p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv wxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof p-1;putchar(p[i]\
);}return 0;}
Jan 24 '07 #14
"ARMAS" <sm********@gmail.comwrites:
are you japanese, chinese or whatever?????
No.
--
int main(void){char p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv wxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof p-1;putchar(p[i]\
);}return 0;}
Jan 24 '07 #15
On Jan 23, 9:04 pm, Ben Pfaff <b...@cs.stanford.eduwrote:
"user923005" <dcor...@connx.comwrites:
On Jan 23, 6:07 pm, Ben Pfaff <b...@cs.stanford.eduwrote:
{"ichi", "ni", "san", "yon", "go", "roku", "nana", "hachi", "kyuu"},
{"ichi", "ni", "san", "she", ...
Unless there is a dialect I do not know about.I'm fairly sure about this, having taken a couple of years of
Japenese when I was an undergrad. If you want more information,
putting "shi yon" into Google is informative.
Quite right, I am hardly a Japanese expert. I only knew how to count
from martial arts classes.
Turns out it is (indeed) a synonym.
--
int main(void){char p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv wxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof p-1;putchar(p[i]\
);}return 0;}
Jan 24 '07 #16


On Jan 23, 10:25 pm, "user923005" <dcor...@connx.comwrote:
/* I say we give this poor kid a hand: */
[snip]

I agree. Let's all applaud the guy :-)

To the OP, do you mean something that outputs results like...
pitchl@phantom:~/code/num2txt$ num2txt
1234567890 reads as "One Billion, Two Hundred Thirty Four Million,
Five Hundred Sixty Seven Thousand, Eight Hundred Ninety"
123456789 reads as "One Hundred Twenty Three Million, Four Hundred
Fifty Six Thousand, Seven Hundred Eighty Nine"
12345678 reads as "Twelve Million, Three Hundred Fourty Five
Thousand, Six Hundred Seventy Eight"
1234567 reads as "One Million, Two Hundred Thirty Four Thousand,
Five Hundred Sixty Seven"
123456 reads as "One Hundred Twenty Three Thousand, Four Hundred
Fifty Six"
12345 reads as "Twelve Thousand, Three Hundred Fourty Five"
1234 reads as "One Thousand, Two Hundred Thirty Four"
123 reads as "One Hundred Twenty Three"
12 reads as "Twelve"
1 reads as "One"
0 reads as "Zero"
?

Jan 24 '07 #17
ARMAS wrote:

I'm just a begginer... I'm sorry if i don't know that much... I've got
two words for you though: "suck it"

And I have one for you:

*plonk*

Brian
Jan 24 '07 #18


On Jan 24, 11:10 am, Kenneth Brody <kenbr...@spamcop.netwrote:
ARMAS wrote:
could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five......char *IntToEnglish(int i)
{
switch(i)
{
case 0: return "zero";
case 1: return "one";
case 2: return "two";
case 1435: return "one thousand four hundred thirty five";
default: return "unknown number";
}
}

Extend as needed.

Replace English words with Roman numerals for your other homework
problem. ie:

case 1: return "I";
case 2: return "II";
case 1435: return "MCDXXXV";

--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody |www.hvcomputer.com| #include |
| kenbrody/at\spamcop.net |www.fptech.com | <std_disclaimer.h|
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:ThisIsASpamT...@gmail.com>

hey , what i mean is, user gets to input any number, not just the
example.... are you making fun of me???

Jan 25 '07 #19
On Jan 25, 11:31 am, "ARMAS" <smart.a...@gmail.comwrote:
>On Jan 24, 10:22 am, Keith Thompson <k...@mib.orgwrote:
"you better work on it too"? I don't think so. If you ask for our
help, we might give it to you; if you demand it, you're on your own.
I'm just a begginer... I'm sorry if i don't know that much... I've got
two words for you though: "suck it"
On Jan 24, 11:10 am, Kenneth Brody <kenbr...@spamcop.netwrote:
ARMAS wrote:
could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five......char *IntToEnglish(int i)
{
switch(i)
{
case 0: return "zero";
case 1: return "one";
case 2: return "two";
case 1435: return "one thousand four hundred thirty five";
default: return "unknown number";
}
}
Extend as needed.
Replace English words with Roman numerals for your other homework
problem. ie:
case 1: return "I";
case 2: return "II";
case 1435: return "MCDXXXV";
hey , what i mean is, user gets to input any number, not just the
example.... are you making fun of me???
Probably not. Methinks this is C code for "suck it".
--
WYCIWYG - what you C is what you get

Jan 25 '07 #20
ARMAS wrote:
Kenneth Brody <kenbr...@spamcop.netwrote:
>ARMAS wrote:
>>could you give me the rpogram in changing digits into words??
Ex: input:1435 output:one thousand four hundred thirty five

char *IntToEnglish(int i)
{
switch(i)
{
case 0: return "zero";
case 1: return "one";
case 2: return "two";
case 1435: return "one thousand four hundred thirty five";
default: return "unknown number";
}
}

Extend as needed.

Replace English words with Roman numerals for your other homework
problem. ie:

case 1: return "I";
case 2: return "II";
case 1435: return "MCDXXXV";

hey , what i mean is, user gets to input any number, not just the
example.... are you making fun of me???
What could possibly give you that idea? I believe Kenneths code
fragments are accurate, and should work right out of the box. BTW,
your shift key doesn't seem to work, and the '.' and '?' keys seem
to repeat for no reason. Since they are all adjacent maybe you
spilled something on the keyboard?

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>

"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews
Jan 25 '07 #21
"ARMAS" <sm********@gmail.comwrites:
[...]
hey , what i mean is, user gets to input any number, not just the
example.... are you making fun of me???
Yes, we're all making fun of you.

Try treating us with some respect, and that may change. (Or not; you
may have burned your bridges already.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jan 25 '07 #22

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lukas Bradley | last post by:
Using MySQL 4.0.12, is there a way to specify significant digits for a mathematical operation within a SELECT? In other words, the query "select 5/213" defaults to two significant digits (0.02)...
1
by: Shreyas Kulkarni | last post by:
hi there, recently i have got a problem regarding calculation of sum of digits in a floating point or precision number. the weird behaviour of compiler/language is preventing me from calculating...
13
by: Kosio | last post by:
Hello, I know of a way to extract digits from a number using the %10 and divide by 10. But I am wondering if there is an algorithm out there that does not use a divide by 10 feature. The...
27
by: Luke Wu | last post by:
Is there a C function that returns the number of digits in an input int/long? example: numdigits(123) returns 3 numdigits(1232132) returns 7
4
by: Anoop | last post by:
Hi All I am getting two different outputs when i do an operation using string.digits and test.isdigit(). Is there any difference between the two. I have given the sample program and the output ...
109
by: jmcgill | last post by:
Hello. Is there a method for computing the number of digits, in a given numeric base, of N factorial, without actually computing the factorial? For example, 8! has 5 digits in base 10; 10! has...
3
by: Anil Mamede | last post by:
Hi, I'm having an hard time to build a regular expression that: - Will accept words; - Will accept spaces; - But cannot accept digits; Examples: This is a game
1
by: magz123 | last post by:
guyz.. Is there any function in vb6 to convert amount in digits to amount in words...like e.g from Rs.450 to four hundred and fifty ... if anyone knows reply to it as soon as possible..
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.