AnsweredAssumed Answered

AW: vrf Dec to Hex Byte to Dec

Question asked by VRFuser on Aug 21, 2006
Does this do what you need?


From: Boespflug, Matthew (GE, Research) []
Sent: Monday, August 21, 2006 9:51 AM
Subject: [vrf] Dec to Hex Byte to Dec

I am trying a very strange data type conversion that is necessary to
communicate with a piece of hardware. I need to go from Decimal form to
Hexadecimal Byte form and the back to Decimal.

Example;  Dec=1979 --> Hex=7bb --> Byte=bb --> Dec=187

This can easily be done using Microsoft's Windows calculator. Anyone have
any suggestions for Vee? And why can't Alphanumeric displays have outputs,
it would solve my problem but it would help? Thanks.


what's wrong with     256*fracpart(a/256)    ??

you're just stripping the lowest 8 bits, right?


Stan Bischof  Agilent Technologies  707-577-3994


To subscribe please send an email to: "" with the word subscribe in the message body.
To unsubscribe send a blank email to "".
To send messages to this mailing list,  email "". 
If you need help with the mailing list send a message to
Search the "unofficial vrf archive" at "".