dcsimg
ascii number to BCD form.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, February 27, 2002 11:41 AM

I have a string String str = "800". When I call str.getBytes(), I get a byte array with "800" encoded as ascii value. Now I want this ascii value to be converted to its equivalent BCD value.


For Example "800" will lead to 56, 48, 48 ascii values in the byte array. now I want each value 56,48,48 to be converted to the BCD value resulting
1000 0000 0000 .

Re: ascii number to BCD form.

Posted By:   Steve_Long  
Posted On:   Wednesday, February 27, 2002 05:47 PM

try giving a better explanation of the conversion formula. how did you determine that 800 -> 56 48 48 ?
About | Sitemap | Contact