On Wed, May 12, 2010 at 7:05 AM, Richard Kubina <[email protected]> wrote:
> I'm trying to use J.DLL in python.  What is the most straight forward way
> for me to figure out how strings, rationals and floats are stored in
> memory?

Perhaps

http://www.jsoftware.com/help/user/calling_jdll.htm?

J does not have a string type, it has a character type.  Characters
are stored just like integers except for they are smaller (8 bits
wide unless you are dealing with wide characters).

Floating point numbers are also stored like integers except they are
64 bits wide.

For rationals and extended precision numbers, I think you would
be best off examining samples using the conversion foreigns
http://www.jsoftware.com/help/dictionary/dx003.htm

I believe extended precision numbers are a sequence of integers
representing the value base 10000, and that rational number
are represented as a pair of extended precision numbers
(numerator and denominator).

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to