src/miscallenous.h

changeset 800
a1d9b7fff8f7
parent 794
c254ddc6618b
child 816
9adb822de7b9
equal deleted inserted replaced
799:c18c8846f6a7 800:a1d9b7fff8f7
29 class QColor; 29 class QColor;
30 class QAction; 30 class QAction;
31 31
32 // Prime numbers 32 // Prime numbers
33 extern const int g_primes[NUM_PRIMES]; 33 extern const int g_primes[NUM_PRIMES];
34
35 // Returns whether a given string represents a floating point number.
36 bool numeric (const QString& tok);
37 34
38 // Simplifies the given fraction. 35 // Simplifies the given fraction.
39 void simplify (int& numer, int& denom); 36 void simplify (int& numer, int& denom);
40 37
41 using ApplyToMatrixFunction = std::function<void (int, double&)>; 38 using ApplyToMatrixFunction = std::function<void (int, double&)>;

mercurial