[{"id":"8542076601","type":"IssueCommentEvent","actor":{"id":3854396,"login":"BenFrantzDale","display_login":"BenFrantzDale","gravatar_id":"","url":"https://api.github.com/users/BenFrantzDale","avatar_url":"https://avatars.githubusercontent.com/u/3854396?"},"repo":{"id":204593825,"name":"microsoft/STL","url":"https://api.github.com/repos/microsoft/STL"},"payload":{"action":"created","issue":{"url":"https://api.github.com/repos/microsoft/STL/issues/1074","repository_url":"https://api.github.com/repos/microsoft/STL","labels_url":"https://api.github.com/repos/microsoft/STL/issues/1074/labels{/name}","comments_url":"https://api.github.com/repos/microsoft/STL/issues/1074/comments","events_url":"https://api.github.com/repos/microsoft/STL/issues/1074/events","html_url":"https://github.com/microsoft/STL/issues/1074","id":663384573,"node_id":"MDU6SXNzdWU2NjMzODQ1NzM=","number":1074,"title":"<random>: uniform_real_distribution(a, b) produces outputs outside [a, b)","user":{"login":"denniskb","id":3048091,"node_id":"MDQ6VXNlcjMwNDgwOTE=","avatar_url":"https://avatars.githubusercontent.com/u/3048091?v=4","gravatar_id":"","url":"https://api.github.com/users/denniskb","html_url":"https://github.com/denniskb","followers_url":"https://api.github.com/users/denniskb/followers","following_url":"https://api.github.com/users/denniskb/following{/other_user}","gists_url":"https://api.github.com/users/denniskb/gists{/gist_id}","starred_url":"https://api.github.com/users/denniskb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denniskb/subscriptions","organizations_url":"https://api.github.com/users/denniskb/orgs","repos_url":"https://api.github.com/users/denniskb/repos","events_url":"https://api.github.com/users/denniskb/events{/privacy}","received_events_url":"https://api.github.com/users/denniskb/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":1520871119,"node_id":"MDU6TGFiZWwxNTIwODcxMTE5","url":"https://api.github.com/repos/microsoft/STL/labels/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working"},{"id":1562898401,"node_id":"MDU6TGFiZWwxNTYyODk4NDAx","url":"https://api.github.com/repos/microsoft/STL/labels/fixed","name":"fixed","color":"000000","default":false,"description":"Something works now, yay!"}],"state":"closed","locked":false,"assignees":[],"milestone":null,"comments":7,"created_at":"2020-07-22T00:13:58Z","updated_at":"2026-04-17T19:54:34Z","closed_at":"2024-06-27T20:52:05Z","assignee":null,"type":null,"active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"**Describe the bug**\r\n> Produces random floating-point values i, uniformly distributed on the interval [a, b)\r\n\r\n*[cppreference.com](https://en.cppreference.com/w/cpp/numeric/random/uniform_real_distribution)*\r\n\r\nThe below code sample demonstrates how a default-constructed `uniform_real_distribution<float>` (a=0, b=1) generates a `1.0f` if provided a random number with all bits set:\r\n\r\n**Command-line test case**\r\n```\r\n#include <cassert>\r\n#include <cstdint>\r\n#include <limits>\r\n#include <random>\r\n\r\nstruct max_rng\r\n{\r\n\tusing result_type = std::uint32_t;\r\n\tresult_type min() const { return 0; }\r\n\tresult_type max() const { return std::numeric_limits<result_type>::max(); }\r\n\tresult_type operator()() { return max(); }\r\n};\r\n\r\nint main()\r\n{\r\n\tmax_rng rng;\r\n\tstd::uniform_real_distribution<float> iid;\r\n\r\n\tassert(iid(rng) < 1.0f);\r\n\r\n\treturn 0;\r\n}\r\n```\r\n\r\n**Expected behavior**\r\nRegardless of the input received from the RNG, `uniform_real_distribution` should never produce `b` as the interval is supposed to be right-*exclusive*. GCC passes this test.\r\n\r\n**STL version**\r\nMicrosoft Visual Studio Community 2019\r\nVersion 16.6.4\r\n\r\n**Additional context**\r\nThe error seems to originate from [`generate_canonical`](https://github.com/microsoft/STL/blob/c10ae01b4d9508eed9d5f059a120ee7223b6ac12/stl/inc/random#L261), which, when passed in the above code, simplifies down to:\r\n\r\n```\r\nreturn (float) UINT_MAX / (UINT_MAX + 1.0f);\r\n```\r\nwhich, mathematically speaking, *should* be less than 1, but in practice gets rounded to `1.0f` due to limited floating point precision. `generate_canonical` is flawed in other regards: using a normalizing/scaling division leads to non-uniformly distributed values. Both of these issues could be avoided by generating random floats the \"canonical\" way, which is to set the bits of the mantissa directly (and simply throw away left-over entropy) along the lines of:\r\n```\r\n// @rnd: uniformly distributed 32bit unsigned int.\r\nreturn (rnd >> 8) / 164233216.0f\r\n```\r\nwhich not only produces values strictly from [0, 1) for any value of `rnd`, but also makes sure that all values are equally far spaced apart leading to a perfect uniform distribution.\r\n\r\nAlso tracked by DevCom-110322 and Microsoft-internal VSO-253526 / [AB#253526](https://devdiv.visualstudio.com/0bdbc590-a062-4c3f-b0f6-9383f67865ee/_workitems/edit/253526) .\r\n","reactions":{"url":"https://api.github.com/repos/microsoft/STL/issues/1074/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/microsoft/STL/issues/1074/timeline","performed_via_github_app":null,"state_reason":"completed","pinned_comment":null},"comment":{"url":"https://api.github.com/repos/microsoft/STL/issues/comments/4270848016","html_url":"https://github.com/microsoft/STL/issues/1074#issuecomment-4270848016","issue_url":"https://api.github.com/repos/microsoft/STL/issues/1074","id":4270848016,"node_id":"IC_kwDODDHaoc7-j_gQ","user":{"login":"BenFrantzDale","id":3854396,"node_id":"MDQ6VXNlcjM4NTQzOTY=","avatar_url":"https://avatars.githubusercontent.com/u/3854396?v=4","gravatar_id":"","url":"https://api.github.com/users/BenFrantzDale","html_url":"https://github.com/BenFrantzDale","followers_url":"https://api.github.com/users/BenFrantzDale/followers","following_url":"https://api.github.com/users/BenFrantzDale/following{/other_user}","gists_url":"https://api.github.com/users/BenFrantzDale/gists{/gist_id}","starred_url":"https://api.github.com/users/BenFrantzDale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenFrantzDale/subscriptions","organizations_url":"https://api.github.com/users/BenFrantzDale/orgs","repos_url":"https://api.github.com/users/BenFrantzDale/repos","events_url":"https://api.github.com/users/BenFrantzDale/events{/privacy}","received_events_url":"https://api.github.com/users/BenFrantzDale/received_events","type":"User","user_view_type":"public","site_admin":false},"created_at":"2026-04-17T19:54:34Z","updated_at":"2026-04-17T19:54:34Z","body":"For those landing here wondering the state of affairs: As of now, clang and gcc trunk still fail but MSVC passes: https://godbolt.org/z/3YK6r5a19","pin":null,"reactions":{"url":"https://api.github.com/repos/microsoft/STL/issues/comments/4270848016/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"performed_via_github_app":null}},"public":true,"created_at":"2026-04-17T19:54:34Z","org":{"id":6154722,"login":"microsoft","gravatar_id":"","url":"https://api.github.com/orgs/microsoft","avatar_url":"https://avatars.githubusercontent.com/u/6154722?"}},{"id":"8535783518","type":"IssuesEvent","actor":{"id":3854396,"login":"BenFrantzDale","display_login":"BenFrantzDale","gravatar_id":"","url":"https://api.github.com/users/BenFrantzDale","avatar_url":"https://avatars.githubusercontent.com/u/3854396?"},"repo":{"id":937253475,"name":"anthropics/claude-code","url":"https://api.github.com/repos/anthropics/claude-code"},"payload":{"action":"labeled","issue":{"url":"https://api.github.com/repos/anthropics/claude-code/issues/50024","repository_url":"https://api.github.com/repos/anthropics/claude-code","labels_url":"https://api.github.com/repos/anthropics/claude-code/issues/50024/labels{/name}","comments_url":"https://api.github.com/repos/anthropics/claude-code/issues/50024/comments","events_url":"https://api.github.com/repos/anthropics/claude-code/issues/50024/events","html_url":"https://github.com/anthropics/claude-code/issues/50024","id":4283975784,"node_id":"I_kwDON91aY87_WEho","number":50024,"title":"[BUG] LSP <new-diagnostics> misses slow async publishDiagnostics notifications (e.g. readability-function-cognitive-complexity)","user":{"login":"BenFrantzDale","id":3854396,"node_id":"MDQ6VXNlcjM4NTQzOTY=","avatar_url":"https://avatars.githubusercontent.com/u/3854396?v=4","gravatar_id":"","url":"https://api.github.com/users/BenFrantzDale","html_url":"https://github.com/BenFrantzDale","followers_url":"https://api.github.com/users/BenFrantzDale/followers","following_url":"https://api.github.com/users/BenFrantzDale/following{/other_user}","gists_url":"https://api.github.com/users/BenFrantzDale/gists{/gist_id}","starred_url":"https://api.github.com/users/BenFrantzDale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenFrantzDale/subscriptions","organizations_url":"https://api.github.com/users/BenFrantzDale/orgs","repos_url":"https://api.github.com/users/BenFrantzDale/repos","events_url":"https://api.github.com/users/BenFrantzDale/events{/privacy}","received_events_url":"https://api.github.com/users/BenFrantzDale/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":8190926409,"node_id":"LA_kwDON91aY88AAAAB6DeeSQ","url":"https://api.github.com/repos/anthropics/claude-code/labels/bug","name":"bug","color":"FF6B80","default":true,"description":"Something isn't working"},{"id":8201030515,"node_id":"LA_kwDON91aY88AAAAB6NHLcw","url":"https://api.github.com/repos/anthropics/claude-code/labels/has%20repro","name":"has repro","color":"ededed","default":false,"description":"Has detailed reproduction steps"},{"id":8223769668,"node_id":"LA_kwDON91aY88AAAAB6izERA","url":"https://api.github.com/repos/anthropics/claude-code/labels/platform:linux","name":"platform:linux","color":"93A5FF","default":false,"description":"Issue specifically occurs on Linux"},{"id":9998490554,"node_id":"LA_kwDON91aY88AAAACU_Tbug","url":"https://api.github.com/repos/anthropics/claude-code/labels/area:lsp","name":"area:lsp","color":"ededed","default":false,"description":null},{"id":10013197073,"node_id":"LA_kwDON91aY88AAAACVNVDEQ","url":"https://api.github.com/repos/anthropics/claude-code/labels/platform:wsl","name":"platform:wsl","color":"93A5FF","default":false,"description":"Issue specifically occurs on WSL"}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":0,"created_at":"2026-04-17T16:24:11Z","updated_at":"2026-04-17T16:25:16Z","closed_at":null,"assignee":null,"issue_field_values":[],"type":null,"active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"### Preflight Checklist\n\n- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet\n- [x] This is a single bug report (please file separate reports for different bugs)\n- [x] I am using the latest version of Claude Code\n\n### What's Wrong?\n\nThe <new-diagnostics> block only captures diagnostics that arrive within the tool call window. Slow clang-tidy checks (like `readability-function-cognitive-complexity`) fire in a later `publishDiagnostics` push and never appear. The verbose log confirms `clangd` sends the diagnostic — it's just not surfaced to the model.\n\nThis works in VSCode's clangd extension.\n\n### What Should Happen?\n\nClaude should see the `readability-function-cognitive-complexity` diagnostic.\n\n### Error Messages/Logs\n\n```shell\n\n```\n\n### Steps to Reproduce\n\n1. Create a C++ file with a function that exceeds cognitive complexity threshold (25), e.g. a function with deeply nested loops and conditionals\n2. Add a .clang-tidy file enabling readability-function-cognitive-complexity\n3. Have a compile_commands.json so clangd can parse the file\n4. Launch Claude Code with clangd in PATH\n5. Use the LSP hover tool on the complex function\n6. Observe: <new-diagnostics> never includes the readability-function-cognitive-complexity warning, even after repeated hover calls\n\nVerification: run clangd with --log=verbose (stderr to a file) and confirm the textDocument/publishDiagnostics JSON contains the diagnostic — clangd sent\n   it, Claude Code just never surfaced it.\n\nRoot cause: readability-function-cognitive-complexity is a slow clang-tidy check that fires in a deferred publishDiagnostics push, after the LSP tool's\n  request/response window closes. Fast checks (e.g. modernize-use-nodiscard) do appear correctly.\n\n### Claude Model\n\nNone\n\n### Is this a regression?\n\nNo, this never worked\n\n### Last Working Version\n\n_No response_\n\n### Claude Code Version\n\n2.1.112\n\n### Platform\n\nAnthropic API\n\n### Operating System\n\nUbuntu/Debian Linux\n\n### Terminal/Shell\n\nWSL (Windows Subsystem for Linux)\n\n### Additional Information\n\n_No response_","reactions":{"url":"https://api.github.com/repos/anthropics/claude-code/issues/50024/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/anthropics/claude-code/issues/50024/timeline","performed_via_github_app":null,"state_reason":null,"pinned_comment":null},"label":{"id":8190926409,"node_id":"LA_kwDON91aY88AAAAB6DeeSQ","url":"https://api.github.com/repos/anthropics/claude-code/labels/bug","name":"bug","color":"FF6B80","default":true,"description":"Something isn't working"},"labels":[{"id":8190926409,"node_id":"LA_kwDON91aY88AAAAB6DeeSQ","url":"https://api.github.com/repos/anthropics/claude-code/labels/bug","name":"bug","color":"FF6B80","default":true,"description":"Something isn't working"}]},"public":true,"created_at":"2026-04-17T16:24:13Z","org":{"id":76263028,"login":"anthropics","gravatar_id":"","url":"https://api.github.com/orgs/anthropics","avatar_url":"https://avatars.githubusercontent.com/u/76263028?"}},{"id":"8535783288","type":"IssuesEvent","actor":{"id":3854396,"login":"BenFrantzDale","display_login":"BenFrantzDale","gravatar_id":"","url":"https://api.github.com/users/BenFrantzDale","avatar_url":"https://avatars.githubusercontent.com/u/3854396?"},"repo":{"id":937253475,"name":"anthropics/claude-code","url":"https://api.github.com/repos/anthropics/claude-code"},"payload":{"action":"opened","issue":{"url":"https://api.github.com/repos/anthropics/claude-code/issues/50024","repository_url":"https://api.github.com/repos/anthropics/claude-code","labels_url":"https://api.github.com/repos/anthropics/claude-code/issues/50024/labels{/name}","comments_url":"https://api.github.com/repos/anthropics/claude-code/issues/50024/comments","events_url":"https://api.github.com/repos/anthropics/claude-code/issues/50024/events","html_url":"https://github.com/anthropics/claude-code/issues/50024","id":4283975784,"node_id":"I_kwDON91aY87_WEho","number":50024,"title":"[BUG] LSP <new-diagnostics> misses slow async publishDiagnostics notifications (e.g. readability-function-cognitive-complexity)","user":{"login":"BenFrantzDale","id":3854396,"node_id":"MDQ6VXNlcjM4NTQzOTY=","avatar_url":"https://avatars.githubusercontent.com/u/3854396?v=4","gravatar_id":"","url":"https://api.github.com/users/BenFrantzDale","html_url":"https://github.com/BenFrantzDale","followers_url":"https://api.github.com/users/BenFrantzDale/followers","following_url":"https://api.github.com/users/BenFrantzDale/following{/other_user}","gists_url":"https://api.github.com/users/BenFrantzDale/gists{/gist_id}","starred_url":"https://api.github.com/users/BenFrantzDale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenFrantzDale/subscriptions","organizations_url":"https://api.github.com/users/BenFrantzDale/orgs","repos_url":"https://api.github.com/users/BenFrantzDale/repos","events_url":"https://api.github.com/users/BenFrantzDale/events{/privacy}","received_events_url":"https://api.github.com/users/BenFrantzDale/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":8190926409,"node_id":"LA_kwDON91aY88AAAAB6DeeSQ","url":"https://api.github.com/repos/anthropics/claude-code/labels/bug","name":"bug","color":"FF6B80","default":true,"description":"Something isn't working"},{"id":8201030515,"node_id":"LA_kwDON91aY88AAAAB6NHLcw","url":"https://api.github.com/repos/anthropics/claude-code/labels/has%20repro","name":"has repro","color":"ededed","default":false,"description":"Has detailed reproduction steps"},{"id":8223769668,"node_id":"LA_kwDON91aY88AAAAB6izERA","url":"https://api.github.com/repos/anthropics/claude-code/labels/platform:linux","name":"platform:linux","color":"93A5FF","default":false,"description":"Issue specifically occurs on Linux"},{"id":9998490554,"node_id":"LA_kwDON91aY88AAAACU_Tbug","url":"https://api.github.com/repos/anthropics/claude-code/labels/area:lsp","name":"area:lsp","color":"ededed","default":false,"description":null},{"id":10013197073,"node_id":"LA_kwDON91aY88AAAACVNVDEQ","url":"https://api.github.com/repos/anthropics/claude-code/labels/platform:wsl","name":"platform:wsl","color":"93A5FF","default":false,"description":"Issue specifically occurs on WSL"}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":0,"created_at":"2026-04-17T16:24:11Z","updated_at":"2026-04-17T16:25:16Z","closed_at":null,"assignee":null,"issue_field_values":[],"type":null,"active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"### Preflight Checklist\n\n- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet\n- [x] This is a single bug report (please file separate reports for different bugs)\n- [x] I am using the latest version of Claude Code\n\n### What's Wrong?\n\nThe <new-diagnostics> block only captures diagnostics that arrive within the tool call window. Slow clang-tidy checks (like `readability-function-cognitive-complexity`) fire in a later `publishDiagnostics` push and never appear. The verbose log confirms `clangd` sends the diagnostic — it's just not surfaced to the model.\n\nThis works in VSCode's clangd extension.\n\n### What Should Happen?\n\nClaude should see the `readability-function-cognitive-complexity` diagnostic.\n\n### Error Messages/Logs\n\n```shell\n\n```\n\n### Steps to Reproduce\n\n1. Create a C++ file with a function that exceeds cognitive complexity threshold (25), e.g. a function with deeply nested loops and conditionals\n2. Add a .clang-tidy file enabling readability-function-cognitive-complexity\n3. Have a compile_commands.json so clangd can parse the file\n4. Launch Claude Code with clangd in PATH\n5. Use the LSP hover tool on the complex function\n6. Observe: <new-diagnostics> never includes the readability-function-cognitive-complexity warning, even after repeated hover calls\n\nVerification: run clangd with --log=verbose (stderr to a file) and confirm the textDocument/publishDiagnostics JSON contains the diagnostic — clangd sent\n   it, Claude Code just never surfaced it.\n\nRoot cause: readability-function-cognitive-complexity is a slow clang-tidy check that fires in a deferred publishDiagnostics push, after the LSP tool's\n  request/response window closes. Fast checks (e.g. modernize-use-nodiscard) do appear correctly.\n\n### Claude Model\n\nNone\n\n### Is this a regression?\n\nNo, this never worked\n\n### Last Working Version\n\n_No response_\n\n### Claude Code Version\n\n2.1.112\n\n### Platform\n\nAnthropic API\n\n### Operating System\n\nUbuntu/Debian Linux\n\n### Terminal/Shell\n\nWSL (Windows Subsystem for Linux)\n\n### Additional Information\n\n_No response_","reactions":{"url":"https://api.github.com/repos/anthropics/claude-code/issues/50024/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/anthropics/claude-code/issues/50024/timeline","performed_via_github_app":null,"state_reason":null,"pinned_comment":null}},"public":true,"created_at":"2026-04-17T16:24:13Z","org":{"id":76263028,"login":"anthropics","gravatar_id":"","url":"https://api.github.com/orgs/anthropics","avatar_url":"https://avatars.githubusercontent.com/u/76263028?"}},{"id":"8104909747","type":"IssueCommentEvent","actor":{"id":3854396,"login":"BenFrantzDale","display_login":"BenFrantzDale","gravatar_id":"","url":"https://api.github.com/users/BenFrantzDale","avatar_url":"https://avatars.githubusercontent.com/u/3854396?"},"repo":{"id":145692046,"name":"mpusz/mp-units","url":"https://api.github.com/repos/mpusz/mp-units"},"payload":{"action":"created","issue":{"url":"https://api.github.com/repos/mpusz/mp-units/issues/432","repository_url":"https://api.github.com/repos/mpusz/mp-units","labels_url":"https://api.github.com/repos/mpusz/mp-units/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/mpusz/mp-units/issues/432/comments","events_url":"https://api.github.com/repos/mpusz/mp-units/issues/432/events","html_url":"https://github.com/mpusz/mp-units/issues/432","id":1566935474,"node_id":"I_kwDOCK8Vjs5dZYmy","number":432,"title":"`ceil` and `floor` are dangerous","user":{"login":"BenFrantzDale","id":3854396,"node_id":"MDQ6VXNlcjM4NTQzOTY=","avatar_url":"https://avatars.githubusercontent.com/u/3854396?v=4","gravatar_id":"","url":"https://api.github.com/users/BenFrantzDale","html_url":"https://github.com/BenFrantzDale","followers_url":"https://api.github.com/users/BenFrantzDale/followers","following_url":"https://api.github.com/users/BenFrantzDale/following{/other_user}","gists_url":"https://api.github.com/users/BenFrantzDale/gists{/gist_id}","starred_url":"https://api.github.com/users/BenFrantzDale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenFrantzDale/subscriptions","organizations_url":"https://api.github.com/users/BenFrantzDale/orgs","repos_url":"https://api.github.com/users/BenFrantzDale/repos","events_url":"https://api.github.com/users/BenFrantzDale/events{/privacy}","received_events_url":"https://api.github.com/users/BenFrantzDale/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignees":[],"milestone":null,"comments":13,"created_at":"2023-02-01T22:23:28Z","updated_at":"2026-04-05T21:29:35Z","closed_at":"2026-04-05T21:29:34Z","assignee":null,"active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"What's the ceiling of my height? Much like `log`, `ceil` and `floor` don't make sense for strongly-united types. I could see `ceil_in<unit>`, but just `ceil` and `floor` aren't invariant against changes in the unit used.\r\n\r\nI think these are the similar ones:\r\n* `ceil`\r\n* `floor`\r\n* `round`\r\n* `trunc`\r\nI guess they are all transcendental?","reactions":{"url":"https://api.github.com/repos/mpusz/mp-units/issues/432/reactions","total_count":2,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":2,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/mpusz/mp-units/issues/432/timeline","performed_via_github_app":null,"state_reason":"completed","pinned_comment":null},"comment":{"url":"https://api.github.com/repos/mpusz/mp-units/issues/comments/4189527909","html_url":"https://github.com/mpusz/mp-units/issues/432#issuecomment-4189527909","issue_url":"https://api.github.com/repos/mpusz/mp-units/issues/432","id":4189527909,"node_id":"IC_kwDOCK8Vjs75tx9l","user":{"login":"BenFrantzDale","id":3854396,"node_id":"MDQ6VXNlcjM4NTQzOTY=","avatar_url":"https://avatars.githubusercontent.com/u/3854396?v=4","gravatar_id":"","url":"https://api.github.com/users/BenFrantzDale","html_url":"https://github.com/BenFrantzDale","followers_url":"https://api.github.com/users/BenFrantzDale/followers","following_url":"https://api.github.com/users/BenFrantzDale/following{/other_user}","gists_url":"https://api.github.com/users/BenFrantzDale/gists{/gist_id}","starred_url":"https://api.github.com/users/BenFrantzDale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenFrantzDale/subscriptions","organizations_url":"https://api.github.com/users/BenFrantzDale/orgs","repos_url":"https://api.github.com/users/BenFrantzDale/repos","events_url":"https://api.github.com/users/BenFrantzDale/events{/privacy}","received_events_url":"https://api.github.com/users/BenFrantzDale/received_events","type":"User","user_view_type":"public","site_admin":false},"created_at":"2026-04-05T21:05:25Z","updated_at":"2026-04-05T21:05:25Z","body":"That seems fine. It’s two args: the quantity Andy the template argument, e.g., seconds.","pin":null,"reactions":{"url":"https://api.github.com/repos/mpusz/mp-units/issues/comments/4189527909/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"performed_via_github_app":null}},"public":true,"created_at":"2026-04-05T21:05:25Z"}]