[svgwg] the float values of polygon.points and polygon.getAttribute('points') are different (#1023)

cogic has just created a new issue for https://github.com/w3c/svgwg:

== the float values of polygon.points and polygon.getAttribute('points') are different ==
```javascript
const polygon= document.createElementNS('http://www.w3.org/2000/svg', 'polygon');
polygon.setAttribute('points', '0.1,0');

console.log(polygon.getAttribute('points')); // 0.1,0
console.log(polygon.points[0]); // {x: 0.10000000149011612, y: 0}
```
Why `polygon.points[0].x !== 0.1` ?
I'm a beginner. Can someone explain this to me? thanks.

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1023 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 11 October 2025 07:05:35 UTC