mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 09:22:13 -05:00
Linux : Use std::fabs
This commit is contained in:
1 parent
b5c97ec750
commit
98410215e7
1 file changed
+1
-1
@@ -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 );
|
||||
|
||||
Reference in new issue
Block a user