Math.PI.toFixed(20) code example Example: how accurate is pi javascript Math.PI; // 3.14152653589793 // accurate to 15 digits (including ones place)