PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 269 - QtCore.qAbs returns only the integer portion of its argument
: QtCore.qAbs returns only the integer portion of its argument
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtCore
: 0.3.2
: PC Linux
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-07-23 11:15 EEST by Neal Holtz
Modified: 2010-08-04 15:17 EEST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neal Holtz 2010-07-23 11:15:12 EEST
QtCore.qAbs returns only the integer portion of its argument.


wall:~> python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PySide import QtCore
>>> QtCore.qVersion()
'4.6.2'
>>> QtCore.qAbs(-0.9)
0                      ## incorrect!, should be 0.9
>>> QtCore.qAbs(-3.9)
3                      ## incorrect!
>>> QtCore.qAbs(3.9)
3                      ## incorrect!
Comment 1 renato filho 2010-08-02 18:05:28 EEST
fixed commit:

commit f098bb9f3ab5034d8fd04f5ea06e7128bee50d5a
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Mon Aug 2 15:54:35 2010 -0300