Hi, With this code : #!/usr/local/bin/hbrun proc main() ? 1234567890123456789 ? 12345678901234567890 return
i get these results (linux debian): 1234567890123456789 12345678901234570000 strange no ? Guy David Arturo Macias Corona a écrit :
> When HB_LONG_LONG_OFF was set then in nearly all places where it was > used I was emulating big numbers using double values so numerical > precission will be only one visible difference with some exceptions > when you reach some limits, f.e. LASTREC() with DBF with more then > 2GB records returns negative value with HB_LONG_LONG_OFF. > This is very simple code to check if it works: > proc main() > ? 1234567890123456789 > return > Without HB_LONG_LONG_OFF this number is stored as double value *** > rounded to 53 bits precision and presented as: > 1234567890123457000 *** Sorry, with or without ? I got inverse I get: With HB_LONG_LONG_OFF: ( set C_USR=-DHB_LONG_LONG_OFF ) [E:\harbour801\bin]hbrun.exe test.prg 1234567890123457000 Without HB_LONG_LONG_OFF: ( Rem set C_USR=-DHB_LONG_LONG_OFF ) [E:\harbour801\bin]hbrun.exe test.prg 1234567890123456789 David Macias
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour