{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreibxl7bzbamzgtay62or3ices37tg4tpl7vpu2fgjzv5mzscnjarse",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mjtuckqdkve2"
},
"path": "/t/add-something-like-num-traits-to-std-or-move-it-into-std-entirely/24181#post_9",
"publishedAt": "2026-04-19T08:12:32.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "scottmcm:\n\n> Now that we have 4 floating point types in the works, we could make `f<N>` work if we wanted\n\nI think we'd need something more complex than that since there are multiple types that can reasonably have size 16 (IEEE 754 half `f16` and brain float `bf16`) and waay more for size 8. there's also x87 `f80` and ppc's 128-bit double double type (not to be confused with IEEE 754 `f128`). This makes me say that's too much complexity to try to have a generic float type like the generic integer types `u<N>` and `i<N>`, so I think having a generic `f<N>` is a bad idea.",
"title": "Add something like `num_traits` to STD, or move it into std entirely"
}