# New Ticket Created by Jarkko Hietaniemi # Please include the string: [perl #122219] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=122219 > [resubmitting since I think the grues ate my first attempt] Perl could support hexadecimal floats: * literals: 0xh.hhhp[+-]?NNN, e.g. 0x1.47ae147ae147bp-7 is 0.1 * printf %a %A * input (PV->NV): "0xh.hhhpnnn" + 3 Lack of %a noted by Dan Kogai: https://groups.google.com/d/msg/perl.perl5.porters/c84JU0olnbQ/YwQczyrqE2YJ Pointer given by Dan: http://en.wikipedia.org/wiki/Printf_format_string#Type Possibly useful resource: http://www.exploringbinary.com/hexadecimal-floating-point-constants/ found by quick googling. Ruby does support the %a %A as noted by Dan, and Python has float.hex() and float.fromhex().Thread Previous | Thread Next