Browse Source

Split up amounts

recurring
Aditya Kulkarni 6 years ago
parent
commit
0b670f5724
  1. 6
      src/main.cpp
  2. 1
      src/mainwindow.cpp

6
src/main.cpp

@ -31,7 +31,11 @@ int main(int argc, char *argv[])
// Temp
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();
}

1
src/mainwindow.cpp

@ -10,7 +10,6 @@
#include "utils.h"
#include "senttxstore.h"
#include "precompiled.h"
using json = nlohmann::json;

Loading…
Cancel
Save