diff options
| author | brian cully <bjc@spork.org> | 2025-12-26 18:35:37 -0500 |
|---|---|---|
| committer | brian cully <bjc@spork.org> | 2025-12-26 18:35:37 -0500 |
| commit | 0eaa19448a85473e85d4679faa4ab30108dbf4b5 (patch) | |
| tree | fabc759d285a04642bb9577233eacc79b67b0185 /site | |
| parent | 9b2b88e70e49b4e79ab1bc72eaee2c3a11ebfb28 (diff) | |
| download | polyring-0eaa19448a85473e85d4679faa4ab30108dbf4b5.tar.gz polyring-0eaa19448a85473e85d4679faa4ab30108dbf4b5.zip | |
use ‘toFixed’ instead of custom stuff
Diffstat (limited to 'site')
| -rw-r--r-- | site/main.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site/main.mjs b/site/main.mjs index f3571ec..dc67d73 100644 --- a/site/main.mjs +++ b/site/main.mjs @@ -59,7 +59,7 @@ class Point { } toString() { - return `(0.${Math.floor(this.x*100)}, 0.${Math.floor(this.y*100)})` + return `(${this.x.toFixed(2)}, ${this.y.toFixed(2)})` } } |
