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
**********************************************************************

Reply via email to