mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 22:50:25 -05:00
- Use 'g' format with precision for AUTO in valueToText - Remove sprintfFormat function and its declaration - Replace individual tests with a single parameterized test - Expand test coverage for all formats and precisions
20 lines
270 B
C++
20 lines
270 B
C++
#pragma once
|
|
|
|
#include <QString>
|
|
|
|
namespace caf
|
|
{
|
|
enum class NumberFormatType
|
|
{
|
|
AUTO,
|
|
SCIENTIFIC,
|
|
FIXED
|
|
};
|
|
|
|
class PdmUiNumberFormat
|
|
{
|
|
public:
|
|
static QString valueToText( double value, NumberFormatType numberFormat, int precision );
|
|
};
|
|
} // namespace caf
|