Large Integer Operations

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Large Integer Operations

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:24 pm

by Chris Power >> Thu, 18 May 2000 23:33:13 GMT

The Jade Integer type is a 32-bit signed value, native to the Pentium processor. Many other Windows development tools now also support 64-bit integer operations and there are several Windows API functions that work with them and use them.

Although I can write my own Int64 operations using Binary[8] variables, I'd prefer to use any Jade-provided functions that might be available, for speed and reliability. Any bites? Are there any such functions
hidden away in Jade libraries?

Chris Power
cpower@unitec.ac.nz

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Large Integer Operations

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:25 pm

by Krull >> Fri, 19 May 2000 6:55:53 GMT
Are there any such functions hidden away in Jade libraries?

Yes, unfortunately they are too well hidden for you to use directly right now


JADE uses 64-bit integer types internally for computation in a number of places, when large integer values need to be communicated via a JADE method they are passed or returned using the JADE Decimal type - see for example Application::relativeMachineTime or DbFile::getFileLength.

A JADE Decimal[20] provides the same precision as an int64 and can be used to provide 'int64 precision' arithmetic, it just won't provide the same performance.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 33 guests

cron