From: Bryan Richardson Date: 2008-05-05T12:13:02+09:00 Subject: Help with rb_iv_set Hello all, I'm trying to use rb_iv_set to set a double value in a C extension I'm writing. rb_iv_set(self, "@voltage", 1.01); This doesn't seem to work, as I get a '0' instead of '1.01'. If I use rb_float_new(1.01), then it works. However, the voltage value in my C structure is a double, and rb_double_new doesn't exist. Any suggestions? -- Thanks! Bryan -- Posted via http://www.ruby-forum.com/.