XPLMGetDatad

XPLM_API double     XPLMGetDatad(
                         XPLMDataRef          inDataRef);    

Read a double precision floating point dataref and return its value. The return value is the dataref value or 0.0 if the dataref is invalid/NULL or the plugin is disabled.