Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more precision
  • Loading branch information
Joel Salisbury committed Jan 21, 2016
1 parent 3c0ec20 commit 79be0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Expand Up @@ -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));

}

0 comments on commit 79be0a4

Please sign in to comment.