From 79be0a4b24faf831237faf6f62276c691bb31131 Mon Sep 17 00:00:00 2001 From: Joel Salisbury Date: Thu, 21 Jan 2016 14:41:12 -0500 Subject: [PATCH] more precision --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 36c042e..183d3eb 100644 --- a/js/main.js +++ b/js/main.js @@ -8,6 +8,6 @@ if (window.DeviceMotionEvent) { function deviceMotionHandler(eventData) { // Grab the acceleration from the results var acceleration = eventData.acceleration; - $("#accelerationX").html(acceleration.x.toPrecision(4)); + $("#accelerationX").html(acceleration.x.toPrecision(2)); } \ No newline at end of file