mirror of
https://github.com/jankae/LibreVNA.git
synced 2025-12-06 07:12:10 +01:00
15 lines
350 B
C
15 lines
350 B
C
|
|
#ifndef UNIT_H
|
||
|
|
#define UNIT_H
|
||
|
|
|
||
|
|
#include <QString>
|
||
|
|
|
||
|
|
class Unit
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
static double FromString(QString string, QString unit = QString(), QString prefixes = " ");
|
||
|
|
static QString ToString(double value, QString unit = QString(), QString prefixes = " ", int precision = 6);
|
||
|
|
static double SIPrefixToFactor(char prefix);
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // UNIT_H
|