mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 06:25:16 +00:00
Selectable marker data format, preparation for showing marker data on graphs
This commit is contained in:
parent
2d13fdfe5e
commit
036837a6ae
16 changed files with 437 additions and 188 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define UNIT_H
|
||||
|
||||
#include <QString>
|
||||
#include <complex>
|
||||
|
||||
namespace Unit
|
||||
{
|
||||
|
|
@ -9,6 +10,8 @@ namespace Unit
|
|||
// prefixed need to be in ascending order (e.g. "m kMG" is okay, whjle "MkG" does not work)
|
||||
QString ToString(double value, QString unit = QString(), QString prefixes = " ", int precision = 6);
|
||||
double SIPrefixToFactor(char prefix);
|
||||
double dB(std::complex<double> d);
|
||||
double dB(double d);
|
||||
};
|
||||
|
||||
#endif // UNIT_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue