Bug 1080940

Summary: ksh does not round correctly between +/- 0.5 to 0.999...
Product: [Fedora] Fedora Reporter: Michal Hlavinka <mhlavink>
Component: kshAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 20CC: mhlavink
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: ksh-20120801-19.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-05 22:21:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Hlavinka 2014-03-26 10:44:50 UTC
Description of problem:
ksh does not round correctly between +/-  0.5 to 0.999...
Bash, sh, csh, and perl all work correctly.

Version-Release number of selected component (if applicable):


How reproducible:
$  printf "%0.f\n" .9
0
$  printf "%0.f\n" 1.9
2
$ printf "%0.f\n" 4.51
5
$ printf "%0.f\n" 4.49
4

This also occurs with negative numbers.

Comment 1 Fedora Update System 2014-07-24 15:59:20 UTC
ksh-20120801-19.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/ksh-20120801-19.fc19

Comment 2 Fedora Update System 2014-07-24 15:59:30 UTC
ksh-20120801-19.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/ksh-20120801-19.fc20

Comment 3 Fedora Update System 2014-07-25 10:04:29 UTC
Package ksh-20120801-19.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ksh-20120801-19.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-8804/ksh-20120801-19.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-09-05 22:21:26 UTC
ksh-20120801-19.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2014-09-05 22:22:26 UTC
ksh-20120801-19.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.