void QLCDNumber::display( const QString &s ) { val = 0; bool ok = FALSE; double v = s.toDouble( &ok ); if ( ok ) val = v; internalSetString( s ); }
void QLCDNumber::display( double num ) { val = num; bool of; QString s = double2string( num, base, ndigits, &of ); if ( of ) emit overflow(); else internalSetString( s ); }
void QLCDNumber::display( const QString &s ) { val = 0; internalSetString( s ); }