bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #66068] built-in printf function not working with float


From: anonymous
Subject: [bug #66068] built-in printf function not working with float
Date: Tue, 6 Aug 2024 05:58:56 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?66068>

                 Summary: built-in printf function not working with float
                   Group: The GNU Bourne-Again SHell
               Submitter: None
               Submitted: Tue 06 Aug 2024 09:58:54 AM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 06 Aug 2024 09:58:54 AM UTC By: Anonymous
*Affected version: 5.2.32(1)*

jesusm@liet:[~]$ bash --version
GNU bash, version 5.2.32(1)-release (x86_64-slackware-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
jesusm@liet:[~]$ printf "%f\n" 1.2
-nan
jesusm@liet:[~]$ /bin/printf "%f\n" 1.2
1.200000
jesusm@liet:[~]$


*Working version: 5.2.26(1)*

jesusm@liet:[~]$ bash --version
GNU bash, version 5.2.26(1)-release (x86_64-slackware-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
jesusm@liet:[~]$ printf "%f\n" 1.2
1.200000
jesusm@liet:[~]$ /bin/printf "%f\n" 1.2
1.200000
jesusm@liet:[~]$









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66068>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]