yes $real is declared as Real.
That is the first thing I checked  :)

> Do you have a C_REAL($Real) line in your code? The compiler might be 
> typing that variable as a longint.
> 
> Dani
> 
>> On Feb 22, 2018, at 10:14 AM, Chip Scheide via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> I have code that converts a value from REAL to Hex.
>> as part of my test routines, maximum value convertible is Maxlong 
>> (php routine)
>> I set the value to convert to (to test out of range error):
>> $Real := 2 * (MAXLONG - 5000000)
>> $Real := 2 * (2147483647 - 5000000) 
>> $Real := 2 * (2142483647)
>> $Real := 4284967294
>> 
>> interpretedly, this is correct, as this is the value given by - 
>> string($Real)
>> 
>> Compiled - the same code
>> String($Real) = -10000002
>> 
>> Anyone have an explanation??
>> 
>> Thanks
>> Chip
>> 
>> 
>> ------------
>> Hell is other people 
>>     Jean-Paul Sartre
>> **********************************************************************
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **********************************************************************
> 
> 
------------
Hell is other people 
     Jean-Paul Sartre
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to