Commit 9310602a authored by Michael Ochmann's avatar Michael Ochmann
Browse files

fixed accuracy value to two decimal digits

parent 0d128a44
......@@ -172,7 +172,7 @@ class HeightMapViewController extends UIViewController {
ctx.font = "bold 23px Arial";
ctx.textAlign = "right";
ctx.fillText(`Datapoints: ${this.model.points.length}`, this.canvas.width - 20 , 32);
ctx.fillText(`Accuracy: ${this.currentAcc}m`, this.canvas.width - 20, this.canvas.height - 20);
ctx.fillText(`Accuracy: ${this.currentAcc.toFixed(2)}m`, this.canvas.width - 20, this.canvas.height - 20);
ctx.textAlign = "left";
ctx.font = "18px Arial";
ctx.fillText(`– ${Math.round(this.model.min)}m`, 10, height - 22);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment