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) [mailto:boespflu@research.ge.com]
Sent: Monday, August 21, 2006 9:51 AM
To: VRF
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


--------------------------------------------------------------------------
Stan Bischof  Agilent Technologies  707-577-3994  stan_bischof@agilent.com
--------------------------------------------------------------------------

---

To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".

Outcomes