//----------------------------------------------------------------------------- float DataType::GetFloat() const { HRESULT hr; Float f; hr = f.Cast( *this ); if( FAILED(hr) ) return 0; return f.Get(); }