1234567891011121314151617181920212223<!DOCTYPE html>charset="utf-8"W3Cschool教程(w3cschool.cn)var x;document.write("<p>仅显示17位: ");x=12345678901234567890;document.write(x + "</p>");document.write("<p>0.2 + 0.1 = ");x=0.2+0.1;document.write(x + "</p>");document.write("<p>可以通过乘以10或除以10来计算: ");x=(0.2*10+0.1*10)/10;document.write(x +"</p>");