On 12/17/2013 09:30 AM, Michael Schnell wrote:
>
> OTHO what is "abs" anyway ?
>
> Is it some kind of "builtin overloaded" function that works differently
> for different argument types ?
>
>
BTW.: Funny stuff:

Is the argument of abs() would be fixed to signed, and we would have 
automatic type conversion what would be the result of this code ?


var i : card32;

i  := 4294967295;
i  := abs(i);

IMHO i needs to be 1.

  - 4294967295 = $FFFFFFFF
  - $FFFFFFFF in signed is -1
  - abs of -1 is 1

-Michael

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to