mb_value_t_to_real

Previous  Next

 

real_t mb_value_t_to_real( mb_value_t value )

 


 

Converts the supplied mb_value_t data to a REAL number.

 

Example

 

/////////////////////////////////////////////////////////////////////////////

// Convert a supplied value to REAL

int _convert_to_real( mb_interpreter_t* s, void** l )

{

  // Parse Parameter

  BEGIN_PARSE( s, l )

     POP_VALUE( val )

  END_PARSE

 

  // Return Converted data

  RETURN_REAL( mb_value_t_to_real( val ) );

}