Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
8a9194383This file is pinned to the selected release. Download the original to open it in your design tool.
#ifndef UNIT_H
#define UNIT_H
#include <QString>
#include <complex>
namespace Unit
{
double FromString(QString string, QString unit = QString(), QString prefixes = " ");
// 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);
}
#endif // UNIT_H