Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
ClojureScript
Conversations
About
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts
quot does not work well with real numbers
17 views
Skip to first unread message
jb...@bgpworks.com
unread,
Sep 30, 2021, 3:21:55 AM
9/30/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ClojureScript
(quot 286.3 21.2) returns 12 instead of 13.
I know it is inherently hard problem due to limited precision.
However, the implementation of CLJS-1164 (
https://clojure.atlassian.net/browse/CLJS-1164
) seems less prune to bug. At least only one division operation is involved there.
I wonder why that patch has been dropped.
It would be better that official `quot` API document mentions about this problem.
Reply all
Reply to author
Forward
0 new messages