Number Conversion

D

DP

I can use hex([field]) to get a decimal number converted
to hexadecimal. How do I convert a hexadecimal number fo
decimal?

Thank you.
 
D

DP

I'm sorry. I don't understand the answer. DP
-----Original Message-----
? Val("&HFF")

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

I can use hex([field]) to get a decimal number converted
to hexadecimal. How do I convert a hexadecimal number fo
decimal?

Thank you.
 
A

Allen Browne

Use the Val() function to convert a string representing the hexadecimal
number.

For example, if you have the hex value in a field, and the &H prefix is not
in the field, use:
Val("&H" & [field])

(Apologies for the cryptically short reply. Made an assumption that anyone
asking about hex numbers would be used to working with these oddities.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

DP said:
I'm sorry. I don't understand the answer. DP
-----Original Message-----
? Val("&HFF")

I can use hex([field]) to get a decimal number converted
to hexadecimal. How do I convert a hexadecimal number fo
decimal?

Thank you.
 
D

DP

That was sufficiently verbose... thanks. (Working with
hexidecimal Unicode codes - know fonts not hexes.) DP
-----Original Message-----
Use the Val() function to convert a string representing the hexadecimal
number.

For example, if you have the hex value in a field, and the &H prefix is not
in the field, use:
Val("&H" & [field])

(Apologies for the cryptically short reply. Made an assumption that anyone
asking about hex numbers would be used to working with these oddities.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

I'm sorry. I don't understand the answer. DP
-----Original Message-----
? Val("&HFF")

I can use hex([field]) to get a decimal number converted
to hexadecimal. How do I convert a hexadecimal number fo
decimal?

Thank you.


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top