comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » strange GT and LT behavior
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: strange GT and LT behavior [message #89488 is a reply to message #89482] Tue, 21 October 2014 04:01 Go to previous message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
On Monday, October 20, 2014 11:28:17 PM UTC+2, Craig Markwardt wrote:
> On Monday, October 20, 2014 12:48:30 PM UTC-4, superchromix wrote:
>
>>
>
>> Thanks for the insights. The reasons for this behavior is clear.. it was just somewhat unexpected.
>
>
>
> When I was young I thought integer math on a computer was so simple and easy. After doing some moderately intensive integer calculations in C, I realized that integer math is the work of evil.
>
>
>
> The interactions of signed vs unsigned, and short vs long data types, is very subtle and prone to error. One needs to pay very careful attention to compiler/interpreter conventions regarding integer math. In my particular case I was using integer math in C to avoid the overhead of floating point, so it was "worth it."
>
>
>
> Craig

If this was C, the programmer would see a compiler warning to flag the comparison of a signed with an unsigned variable. I wonder if such a "warning" would be possible in IDL...? Now that I think of it, probably not, since a function doesn't know what will be passed to it until runtime..
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: cgWindRose has error producing legend?
Next Topic: save contour to eps in 8.2.3

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 10:19:21 PDT 2025

Total time taken to generate the page: 1.28036 seconds