Method: OraNumber#to_f
- Defined in:
- ext/oci8/ocinumber.c
#to_f ⇒ Float
Converts self to Float.
When OCI8.properties [:float_conversion_type] is :ruby, self is converted by self.to_s.to_f. When it is :oracle, self is converted by the Oracle OCI function OCINumberToReal().
1377 1378 1379 1380 |
# File 'ext/oci8/ocinumber.c', line 1377 static VALUE onum_to_f(VALUE self) { return rb_float_new(oci8_onum_to_dbl(_NUMBER(self), oci8_errhp)); } |