44 Q_INVOKABLE
static void doubleToRational(
double value, qlonglong &numerator
SIP_OUT, qlonglong &denominator
SIP_OUT,
double tolerance = 1.0e-9,
int maxIterations = 100 );
QgsRange which stores a range of double values.
Contains utility functions for mathematical operations.
static Q_INVOKABLE void doubleToRational(double value, qlonglong &numerator, qlonglong &denominator, double tolerance=1.0e-9, int maxIterations=100)
Converts a double value to a rational fraction.
static QgsDoubleRange roundedRange(const QgsDoubleRange &range)
Expands a range outward to round values, e.g.
static double roundingInterval(double span, int divisions=10)
Returns a round interval, a power of ten, which splits the given span into at least divisions parts.