From 4d6da752ef61be746341b025c4b61a322ce0629d Mon Sep 17 00:00:00 2001 From: teachingtechYT Date: Tue, 23 Nov 2021 16:02:31 +1100 Subject: [PATCH] Increase e-steps accuracy to 5 decimal places --- js/gcodeprocessing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/gcodeprocessing.js b/js/gcodeprocessing.js index c970890..58ee5cd 100644 --- a/js/gcodeprocessing.js +++ b/js/gcodeprocessing.js @@ -35,7 +35,7 @@ function esteps(){ var oldSteps = document.estepsForm.oldSteps.value; var remainingFil = document.estepsForm.remainingFil.value; var actualExtrusion = 120 - remainingFil; - var newSteps = (oldSteps/actualExtrusion*100).toFixed(2); + var newSteps = (oldSteps/actualExtrusion*100).toFixed(5); $("#e1").html(remainingFil); $("#e2").html(actualExtrusion); $("#e3").html(newSteps);