diff --git a/src/gdd/aitConvert.cc b/src/gdd/aitConvert.cc index b2a4e42e3..eeb51ee32 100644 --- a/src/gdd/aitConvert.cc +++ b/src/gdd/aitConvert.cc @@ -50,14 +50,16 @@ bool getStringAsDouble ( const char * pString, ftmp = itmp; } else { - int j = epicsScanDouble( pString, &ftmp ); - if ( j != 1 ) { - j = sscanf ( pString,"%x", &itmp ); - if ( j == 1 ) { - ftmp = itmp; - } - else { - return false; + int j = epicsScanDouble ( pString, &ftmp ); + if ( j != 1 ) { + j = sscanf ( pString, "%lf", &ftmp ); + if ( j != 1 ) { + j = sscanf ( pString, "%x", &itmp ); + if ( j == 1 ) { + ftmp = itmp; + } else { + return false; + } } } }