# Public, allocation-free way to write a \`Float64\` as \`print\` does?

**URL:** <https://discourse.julialang.org/t/public-allocation-free-way-to-write-a-float64-as-print-does/142960>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 15, 2026, 11:19am UTC](https://discourse.julialang.org/t/public-allocation-free-way-to-write-a-float64-as-print-does/142960 "2026-11-15T11:19:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [November 15, 2026, 1:27pm UTC](https://discourse.julialang.org/t/public-allocation-free-way-to-write-a-float64-as-print-does/142960/2 "2026-11-15T13:27:18Z")

</div>

It’s not Base’s public, but just in case, have you checked BufferIO.jl?

```julia-auto
using BufferIO
io = BufWriter(IOBuffer())
write(io, 5.0)

```

See [this post](https://discourse.julialang.org/t/int-str-print-io-without-allocations/134626/7) from the package author using integers.

---

_[View the full topic](https://discourse.julialang.org/t/public-allocation-free-way-to-write-a-float64-as-print-does/142960)._
