Page 1 of 1

Equivalent CHAR

Posted: Fri Feb 02, 2007 9:25 pm
by sylvan_rydes
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

Re: Equivalent CHAR

Posted: Fri Feb 02, 2007 9:33 pm
by chulett
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.
Rather simplest, but I have no idea what you are asking. :?

Can you rephrase or provide an example of what you are trying to convert - from and to, if possible?

Posted: Fri Feb 02, 2007 9:35 pm
by sylvan_rydes
Hi Craig,

Suppose the number is 5489275482321009. Then what will be the equivalent char to this number. Isn't it simple?

Sylvan

Posted: Fri Feb 02, 2007 9:50 pm
by I_Server_Whale
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
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?

Whale.

Posted: Fri Feb 02, 2007 9:53 pm
by chulett
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.

Posted: Fri Feb 02, 2007 10:03 pm
by chulett
:evil: Dang, I can't find the routine Ray posted for the life of me... sorry. It's here somewhere and would be helpful if that is what you are looking for.

Posted: Fri Feb 02, 2007 10:12 pm
by DSguru2B
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.

Posted: Fri Feb 02, 2007 10:13 pm
by I_Server_Whale
Easy Craig!. :wink: Here it is.

Posted: Fri Feb 02, 2007 10:34 pm
by sylvan_rydes
Hi All,

Well..I have already seen all the posts earlier. Anyway I don't have more to say but thanks for all the feedback.

Sylvan

Posted: Fri Feb 02, 2007 10:37 pm
by DSguru2B
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
I still did not get what you wanted :?
Do you want that number to be represented in words? Kinda lost with your terminology.

Posted: Sat Feb 03, 2007 12:50 am
by ray.wurlod
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.

Posted: Sat Feb 03, 2007 8:30 am
by chulett
sylvan_rydes wrote:Well..I have already seen all the posts earlier. Anyway I don't have more to say but thanks for all the feedback.
But... was your question answered? :?