B
Bryan Richardson
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?
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?