Better normalization rules for SPICE_VALUE

This commit is contained in:
Maciej Suminski 2016-08-11 14:42:07 +02:00
parent bf758dce3e
commit dbf0fd6156
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ void SPICE_VALUE::Normalize()
m_prefix = (UNIT_PREFIX)( m_prefix + 3 );
}
while( m_base != 0.0 && std::fabs( m_base ) <= 1.000 )
while( m_base != 0.0 && std::fabs( m_base ) < 1.000 )
{
m_base *= 1000.0;
m_prefix = (UNIT_PREFIX)( m_prefix - 3 );