From: matz@... (Yukihiro Matsumoto) Date: 2001-09-20T15:53:24+09:00 Subject: [ruby-talk:21425] Re: is there an unsigned version of INT2NUM? Hi, In message "[ruby-talk:21422] is there an unsigned version of INT2NUM?" on 01/09/20, Phil Tomson writes: |I've got a C variable thats an unsigned long that I want to be able to |read on the Ruby side as unsigned. currently I'm using INT2NUM() (also |tried INT2FIX) and when I print the variable out from the Ruby script I |get a large negative number. I don't want the '-' sign. Is there another |conversion macro for doing this? (something like UINT2NUM, but I don't |see anything like this) There is UINT2NUM(). See ruby.h matz.