var str = (3.14).toLocaleString(); assertEq(str[str.length-1], "4");