All,
I discovered a bug in VEE 8.01.
Round(0) returns 0 as it should. However, Round(expression) returns -0 if the expression evaluates to 0.
For example: Round(0/5) returns -0.
Not problem if you are doing further calculations. However if you are using the result to build a string the unexpected minus sign can be troublesome.
I spent a lot of time this morning troubleshooting what looked like bad hardware only to discover that minus sign was messing up a command string I was sending to a DAC. What should have been 0000 was transmitted as 000-0 instead, which the DAC was not responding too.
My quick fix was to revert back to VEE 7.5. That was lot less paperwork than changing my code and writing ECN's.
Bill
---
You are currently subscribed to vrf as: hua_jing@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 "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
I discovered a bug in VEE 8.01.
Round(0) returns 0 as it should. However, Round(expression) returns -0 if the expression evaluates to 0.
For example: Round(0/5) returns -0.
Not problem if you are doing further calculations. However if you are using the result to build a string the unexpected minus sign can be troublesome.
I spent a lot of time this morning troubleshooting what looked like bad hardware only to discover that minus sign was messing up a command string I was sending to a DAC. What should have been 0000 was transmitted as 000-0 instead, which the DAC was not responding too.
My quick fix was to revert back to VEE 7.5. That was lot less paperwork than changing my code and writing ECN's.
Bill
---
You are currently subscribed to vrf as: hua_jing@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 "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
Mark
_____
From: Drago, William @NARDAEAST [mailto:William.Drago@L-3com.com]
Sent: Thursday, July 19, 2007 11:37 AM
To: VRF
Subject: [vrf] VEE Round() Bug
All,
I discovered a bug in VEE 8.01.
Round(0) returns 0 as it should. However, Round(expression) returns -0 if the expression evaluates to 0.
For example: Round(0/5) returns -0.
Not problem if you are doing further calculations. However if you are using the result to build a string the unexpected minus sign can be troublesome.
I spent a lot of time this morning troubleshooting what looked like bad hardware only to discover that minus sign was messing up a command string I was sending to a DAC. What should have been 0000 was transmitted as 000-0 instead, which the DAC was not responding too.
My quick fix was to revert back to VEE 7.5. That was lot less paperwork than changing my code and writing ECN's.
Bill
---
You are currently subscribed to vrf as: Mark.Goldberg@atk.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 "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
---
You are currently subscribed to vrf as: hua_jing@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 "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".