pub fn as_float(&self) -> Result<f64> {
        match *self {
            Object::Integer(ref value) => Ok(*value as f64),
            Object::Real(ref value) => Ok(*value),
            _ => Err(Error::Type),
        }
    }
/// Get the object value as a float.
/// Unlike as_f64() this will also cast an Integer to a Real.
Get the object value as a float.
Unlike as_f64() this will also cast an Integer to a Real.
Get the object value as a float . Unlike as_f64 () this will also cast an Integer to a Real .
pub fn as_float(&self) -> Result<f64> {
        match *self {
            Object::Integer(ref value) => Ok(*value as f64),
            Object::Real(ref value) => Ok(*value),
            _ => Err(Error::Type),
        }
    }
pub fn as_float ( & self ) -> Result < f64 > { match * self { Object :: Integer ( ref value ) => Ok ( * value as f64 ) , Object :: Real ( ref value ) => Ok ( * value ) , _ => Err ( Error :: Type ) , } }
Get the object value as a float.
Get the object value as a float .
&self
&self