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

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

using BufferIO
io = BufWriter(IOBuffer())
write(io, 5.0)

See this post from the package author using integers.