Re: [bug #66068] built-in printf function not working with float
From:
Chet Ramey
Subject:
Re: [bug #66068] built-in printf function not working with float
Date:
Tue, 6 Aug 2024 09:33:05 -0400
User-agent:
Mozilla Thunderbird
On 8/6/24 5:58 AM, anonymous wrote:
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:[~]$