Base Conversion?
-
I want to convert a base-100 number into a decimal number.. the thing i dont understand is what is representation of base-100 number? i mean how to differentiate b/w numbers.. Hex uses A,B,C,D,E and F. but how are the digits represented in base-100???? any help, link will be appreciated :) thanks
-
I want to convert a base-100 number into a decimal number.. the thing i dont understand is what is representation of base-100 number? i mean how to differentiate b/w numbers.. Hex uses A,B,C,D,E and F. but how are the digits represented in base-100???? any help, link will be appreciated :) thanks
are you sure you have a base-100(dec) instead of a base-100(bin - base-4) ? lol seriously, i'm not sure at all such a thing really exist, not find its point of interest. itoa()[^] documentation for example talks about base-36 max (the 10 digits, plus the 26 latin letter of the alphabet
Don't know where to start ?
Refer the Forums Guidelines and ask a friend -
I want to convert a base-100 number into a decimal number.. the thing i dont understand is what is representation of base-100 number? i mean how to differentiate b/w numbers.. Hex uses A,B,C,D,E and F. but how are the digits represented in base-100???? any help, link will be appreciated :) thanks
Your question doesn't really make sense: a number is a number. The thing that changes is how this number is represented (hex, decimal, ...). It is like have 16 apples in a bucket. You can say "I have 10 (decimal) apples" or you can say "I have 0x10 apples". But in both cases, your number (the number of apples) is still the same. So what do you want to do exactly ? Convert from a string (of a certain representation) to a number ? Or the opposite ? Or converting from a string to a string ? BTW, I don't know how base-100 numbers are represented and I even never heard of any use of that. For what purpose are you using that ?
Cédric Moonen Software developer
Charting control [v1.1] -
I want to convert a base-100 number into a decimal number.. the thing i dont understand is what is representation of base-100 number? i mean how to differentiate b/w numbers.. Hex uses A,B,C,D,E and F. but how are the digits represented in base-100???? any help, link will be appreciated :) thanks
I worked with a guy once that used a base-36 numbering system before. I don't know the details, other than it used 0-9 and A-Z. Base-100 seems a bit far-fetched. Do you have any reference material?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
I worked with a guy once that used a base-36 numbering system before. I don't know the details, other than it used 0-9 and A-Z. Base-100 seems a bit far-fetched. Do you have any reference material?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
Thanks for the replies! I guess your right i was a little vague! Lets restart! First of all i am working with Oracle 10g Server. Kindly go to the following link and hopefully you'll get what i want to achieve! http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14250/oci03typ.htm#sthref431[^] hope to hear from anyone soon :doh:
-
Thanks for the replies! I guess your right i was a little vague! Lets restart! First of all i am working with Oracle 10g Server. Kindly go to the following link and hopefully you'll get what i want to achieve! http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14250/oci03typ.htm#sthref431[^] hope to hear from anyone soon :doh:
Ok, but why do you need to convert it? As I understand it, the base-100 format is used internally by Oracle.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Ok, but why do you need to convert it? As I understand it, the base-100 format is used internally by Oracle.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
I want to send data to oracle using OCI in number format. Oracle is capable of doing the conversion implicitly but i have to send it in as a number as specified by the specs! that is as unsigned char number[21];
Is the Oracle field a
NUMBER
or anINTEGER
? Can you bind to aBINARY_DOUBLE
datatype?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Is the Oracle field a
NUMBER
or anINTEGER
? Can you bind to aBINARY_DOUBLE
datatype?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
There's an example here about halfway down the page that shows a value being stored in a
NUMBER
field (i.e, partno). Is that of any help?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb