mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Linux : Use std::fabs
This commit is contained in:
parent
b5c97ec750
commit
98410215e7
@ -404,7 +404,7 @@ void RivWellDiskPartMgr::buildWellDiskParts( size_t frameIndex, const caf::Displ
|
||||
|
||||
QString RivWellDiskPartMgr::formatNumber( double num )
|
||||
{
|
||||
if ( std::abs( num ) < 1e4 )
|
||||
if ( std::fabs( num ) < 1e4 )
|
||||
return QString::number( num, 'f', 1 );
|
||||
else
|
||||
return QString::number( num, 'g', 2 );
|
||||
|
Loading…
Reference in New Issue
Block a user