Equivalent CHAR
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 47
- Joined: Wed Apr 12, 2006 12:13 pm
Equivalent CHAR
Hi All,
This is rather simplest thing to ask. If you have a number in billion then how will you calculate the equivalent character for this decimal.
I tried Fmt and Oconv but all I got is of no use. Thanks in advance.
Sylvan
This is rather simplest thing to ask. If you have a number in billion then how will you calculate the equivalent character for this decimal.
I tried Fmt and Oconv but all I got is of no use. Thanks in advance.
Sylvan
sylvan rydes
Re: Equivalent CHAR
Rather simplest, but I have no idea what you are asking.sylvan_rydes wrote:This is rather simplest thing to ask. If you have a number in billion then how will you calculate the equivalent character for this decimal.
Can you rephrase or provide an example of what you are trying to convert - from and to, if possible?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 47
- Joined: Wed Apr 12, 2006 12:13 pm
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
How can there be an equivalent character to the above number? I'm not able to decipher your objective here. What did you try using Fmt and Oconv functions?sylvan_rydes wrote:Hi Craig,
Suppose the number is 5489275482321009. Then what will be the equivalent char to this number. Isn't it simple?
Sylvan
Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
The example helps but is incomplete. You say 'equivalent char' like you want this translated into a single character - but I'm guessing you want this number spelled out in words?
If that's the case, Ray posted a routine to do that quite recently. Either one of us could search for it. If that's not the case, you need to complete the example, show us what it should convert to... perhaps with a smaller number.
If that's the case, Ray posted a routine to do that quite recently. Either one of us could search for it. If that's not the case, you need to complete the example, show us what it should convert to... perhaps with a smaller number.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Give us an example. What it looks like and what you want? If you want a number to be converted to words, then clickhereto get the routine Craig is talking about.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
Easy Craig!. Here it is.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
-
- Participant
- Posts: 47
- Joined: Wed Apr 12, 2006 12:13 pm
I still did not get what you wantedsylvan_rydes wrote:Hi Craig,
Suppose the number is 5489275482321009. Then what will be the equivalent char to this number. Isn't it simple?
Sylvan
Do you want that number to be represented in words? Kinda lost with your terminology.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
If you are asking what character is represented by UniChar(5489275482321009) you're out of luck. There isn't one.
The Unicode convention provides either for a 16-bit architecture (maximum of 65,536 different characters) or a 32-bit architecture (maximum of 4,294,967,296 different characters). The 64K character space is pretty much all accounted for (see Unicode Consortium web site) but there's plenty of unused space in the large set of code points.
The Unicode convention provides either for a 16-bit architecture (maximum of 65,536 different characters) or a 32-bit architecture (maximum of 4,294,967,296 different characters). The 64K character space is pretty much all accounted for (see Unicode Consortium web site) but there's plenty of unused space in the large set of code points.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.