`Math.f32round` alias?
Opened this issue · 3 comments
zloirock commented
It's strange to have Math.f16round
for Float16 and Math.fround
for Float32 in terms of naming.
Maybe makes sense to add Math.f32round
alias for consistency?
bakkot commented
I don't think it's that weird. In C++ (for example) "float" means binary32 floats, and "__fp16" means binary16.
Very few people need this, and those that do are likely to understand the distinction, so I don't think it's worth having an alias. I'll leave this open so others can chime in, but I doubt we'll do this.
zloirock commented
It's JS, not C++, and the base number type is number -> float64, so there by the name "float" I see float64. Clarification is required, rather, for float32 that's used much less often.