-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Description
The ryu floating point formatting algorithm was recently added to std. This implemented only the 128-bit backend, which we use to print all floating point values: #19229
We should also consider implementing the 32-bit and 64-bit backends. At minimum, the 64-bit backend is valuable as it is much faster and reduces the large need for fast 128-bit integer support to make use of the existing backend. The 32-bit backend may be more valuable for smaller code-size specifically for embedded targets.
Upstream reference can be found at: https://github.com/ulfjack/ryu
An old (but outdated) implementation can be found at: https://github.com/tiehuis/zig-ryu
zxubian
Metadata
Metadata
Assignees
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.