I'm building a C extension and have a "long long"
which I want to turn into a Bignum. Can anyone
point me to an example please? I've googled without
success.
Clifford Heath.
I'm building a C extension and have a "long long"
which I want to turn into a Bignum. Can anyone
point me to an example please? I've googled without
success.
Clifford Heath.
Basing this purely on a random guess (based on reasonable assumptions about ruby) try:
LONGLONG2NUM()
On Mar 2, 2006, at 7:58 PM, Clifford Heath wrote:
I'm building a C extension and have a "long long"
which I want to turn into a Bignum. Can anyone
point me to an example please? I've googled without
success.Clifford Heath.
VALUE foo = LL2NUM(my_long);
-- Daniel
On Mar 3, 2006, at 1:58 AM, Clifford Heath wrote:
I'm building a C extension and have a "long long"
which I want to turn into a Bignum. Can anyone
point me to an example please? I've googled without
success.Clifford Heath.
Logan Capaldo wrote:
Basing this purely on a random guess (based on reasonable assumptions about ruby) try:
LONGLONG2NUM()
Reasonable guess I suppose, except that doesn't seem to
be declared anywhere (ruby 1.8.1-11) :-(.
Clifford.
Daniel Harple wrote:
VALUE foo = LL2NUM(my_long);
Thanks both. I have my extension working.
Kudos to Matz also - it's really easy to build these things :-).
Clifford Heath.
Hopefully by now you've seen Daniel's more accurate response. (LL2NUM(x))
On Mar 2, 2006, at 8:18 PM, Clifford Heath wrote:
Logan Capaldo wrote:
Basing this purely on a random guess (based on reasonable assumptions about ruby) try:
LONGLONG2NUM()Reasonable guess I suppose, except that doesn't seem to
be declared anywhere (ruby 1.8.1-11) :-(.Clifford.