Skip to content

printf: %a not supported (but partially implemented) #2776

Open
@jfinkels

Description

@jfinkels
$ printf "%a\n" 255
0xf.fp+4
$ ./target/debug/coreutils printf "%a\n" 255
printf: %a: invalid conversion specification

Here is the description of the floating-point conversions: https://www.gnu.org/software/libc/manual/html_node/Floating_002dPoint-Conversions.html

This seems to be called CninetyNineHexFloatf in the code:

but it seems to be only partially implemented and not exposed to the user:
// 'a', 'A', //c99 hex float implementation not yet complete

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions