Seppe
(Fresh Scripter)
2013-01-10 07:25 PM
Value represented in hex

Hi all,

I expected that KixTart would display &FFFFFFF0 as -15, but it displays -241.
(As if i would have typed &FFFFFF0F).
Do i miss something?
Seppe


LonkeroAdministrator
(KiX Master Guru)
2013-01-10 08:25 PM
Re: Value represented in hex

I might be mistaken but my bet is that kixtart does unsigned to uint first and then to int.
hence, when use say &FFFFFFF0, kixtart reads it as &FFFFFF0, or something like that. anyhow, some sort of overflow seems to be going on.
just my guess.


Glenn BarnasAdministrator
(KiX Supporter)
2013-01-10 08:44 PM
Re: Value represented in hex

Welcome to KORG..

Check out this post for a UDF that can convert numbers beyond 7fffffff. You might be able to use the logic in reverse to convert large hex values to decimal.

Glenn