You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using clog from the 2024-10-12 quicklisp distribution.
When I pass a double float (e.g. 0.52d0) into ROTATE in CLOG-Canvas, my canvas transform does not rotate. However, it does when passing a single-float or other literal (e.g. -1).
I believe that the double floating literal printing format used by Common Lisp is confusing JavaScript. The two successful workarounds I found were to:
Format a double float as a string, e.g. (format-string nil "~f" 0.52d0)
Coerce to single string, e.g. (coerce 0.52d0 'single-float)
I suspect that this bug exists in other functions as well, but I didn't test any others.
The text was updated successfully, but these errors were encountered:
I'm using clog from the 2024-10-12 quicklisp distribution.
When I pass a double float (e.g.
0.52d0
) intoROTATE
in CLOG-Canvas, my canvas transform does not rotate. However, it does when passing a single-float or other literal (e.g.-1
).I believe that the double floating literal printing format used by Common Lisp is confusing JavaScript. The two successful workarounds I found were to:
(format-string nil "~f" 0.52d0)
(coerce 0.52d0 'single-float)
I suspect that this bug exists in other functions as well, but I didn't test any others.
The text was updated successfully, but these errors were encountered: