AnsweredAssumed Answered

vrf int16 - is there a bug

Question asked by warren.pickles on Apr 24, 2003
Yes I think you are right.  If you send -1 as Int16 into a To String with
WRITE TEXT a HEX you get "ffffffff" - ie a 32 bit hex representation.  If
you send "ffff" into a From String with READ TEXT x HEX, the output is 65535
(Int32).
In the VEE Pro Advanced Programming Techniques book, it says that WRITE TEXT
HEX writes data as a 32-bit two's complement integer in hexadecimal form.
Perhaps that applies to all hex conversions in VEE - ie they all end up as
Int32.

Warren



-----Original Message-----
From: ralf.eichele@smart-gmbh.de [mailto:ralf.eichele@smart-gmbh.de]
Sent: 24 April 2003 13:40
To: VEE Reflector; Pickles, Warren
Subject: Antwort: RE: [vrf] int16 - is there a bug


Hi Warren,

yes i assume, that the int 16 range is from -32768 to 32767. -1 is FFFF in
int
16 and 65535 in int32 or unsigned int16. Is there maybe the problem, that
vee
converts hex every time to an int 32 value and so it is interpreted as 65535
and
not as -1?

Ralf

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes