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 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.
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.
I agree with @bakkot. This can always be added once there's a clear need established for it through Stack Overflow questions or libraries offering a wrapper.
It's strange to have
Math.f16round
for Float16 andMath.fround
for Float32 in terms of naming.Maybe makes sense to add
Math.f32round
alias for consistency?The text was updated successfully, but these errors were encountered: