-
Senior Member
Hiya,
I'm trying to create a hex number based on a decimal. i.e.
if decVar = 100, hexVar = 66, and when decVar = 0, hexVar = CC, and each appropriate value in between. Any ideas? Possible with an external script?
Thanks, Chi
[Edited by chi-styler on 07-08-2002 at 08:36 AM]
-
Senior Member
-
Living Proof
DEC TO HEX
Hi,
'quote'
if decVar = 100, hexVar = 66, and
when decVar = 0, hexVar = CC
'end quote'
What are you basing your calcultions 0n.
Dec 100 = h'64 not h'66
Dec 0 = h'0 not h'CC
?????
-
Senior Member
Well, for each value between 0 and 100, the corresponding nearest hex value is created between 66 and CC. For example, 50 would mean 99 was created.
Sorry, i didn't mean direct calculation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|