On Tuesday, 31 August 2021 at 17:53:12 UTC, deadalnix wrote: > When formatting floats, as far as I can tell, one either has to > pick the whole decimal gallery, or accept that the end result > might be ambiguous. I don't know what your use case is but have you tried %a which formats it as a hex float?