Split up amounts
This commit is contained in:
@@ -31,7 +31,11 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// Temp
|
// Temp
|
||||||
Turnstile t;
|
Turnstile t;
|
||||||
qDebug() << t.splitAmount(1245.2294371, 3);
|
double amt = 2329127.99999999;
|
||||||
|
qDebug() << QString::number(amt, 'f', 8) << ":";
|
||||||
|
for (auto a : t.splitAmount(amt, 3)) {
|
||||||
|
qDebug() << QString::number(a, 'f', 8);
|
||||||
|
}
|
||||||
|
|
||||||
return QApplication::exec();
|
return QApplication::exec();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "senttxstore.h"
|
#include "senttxstore.h"
|
||||||
|
|
||||||
|
|
||||||
#include "precompiled.h"
|
#include "precompiled.h"
|
||||||
|
|
||||||
using json = nlohmann::json;
|
using json = nlohmann::json;
|
||||||
|
|||||||
Reference in New Issue
Block a user