bug-bash
[Top][All Lists]
Advanced

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

printf builtin bug?


From: Alessandro Di Rubbo
Subject: printf builtin bug?
Date: Sun, 26 Dec 2004 15:34:58 +0100

Machine: i586
OS: linux-gnu
Compiler: i586-mandrake-linux-gnu-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-mandrake-linux-gnu'
-DCONF_VENDOR='mandrake' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include
-I./lib -D_GNU_SOURCE  -O2 -fomit-frame-pointer -pipe -march=i586
-mcpu=pentiumpro -g
uname output: Linux localhost 2.4.22-26mdk #1 Wed Jan 7 10:47:21 MST
2004 i686 unknown unknown GNU/Linux
Machine Type: i586-mandrake-linux-gnu
                                                                                
Bash Version: 2.05b
Patch Level: 0
Release Status: release
                                                                                
Description:
        printf builtin rounds some decimals incorrectly.
                                                                                
Repeat-By:
        $ printf %.f 1.000000000000000000001; echo
        0
        $ printf %.f 1.00000000000000000001; echo
        0
        $ printf %.f 1.0000000000000000001; echo
        1
        $ printf %.f 1.00000000000000000000; echo
        1






reply via email to

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