KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
127599
:
big number are always displayed as -2^31
P
roduct
:
kspread
Co
m
ponent
:
general
Status
:
NEW
Resolution
:
Target
:
---
Version
:
unspecified
Pr
i
ority
:
NOR
Severity
:
normal
V
otes
:
80
Description
:
Opened:
2006-05-18 19:05
Last Changed:
2008-08-10 18:50:51
Version: 1.5.0 (using KDE 3.5.2, Gentoo) Compiler: gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9) OS: Linux (i686) release 2.6.16-gentoo-r4 Whenever I enter some number bigger than (2^31)-1 it is displayed as -2^31. This happens on x86-32 and ppc32.
Comment
#1
Stefan Nikolaus 2006-05-18 19:22:47
Already fixed for 1.5.1.
Comment
#2
Marcel Meyer 2006-06-04 15:50:56
I can not confirm that. :-( I have just upgraded to KDE 3.5.3 and KOffice 1.5.1 and get similar results. In fact it is possible to enter numbers slightly bigger than (2^31)-1. But not very far. F.ex. 3000000000 still show the negative number. Results from formulars can be bigger than that. But manually inputed fields are shown wrong. Am I doing sth. wrong or is this bug perhaps not yet solved? Thank you.
Comment
#3
Marcel Meyer 2006-06-10 15:00:52
Can anybody confirm this problem?
Comment
#4
Stefan Nikolaus 2006-06-10 15:15:03
The issue fixed in 1.5.1 was a similar one. My bad. You're right, this is a valid problem.
Comment
#5
Sebastian Sauer 2006-08-19 12:23:18
***
Bug 131163
has been marked as a duplicate of this bug. ***
Comment
#6
Sebastian Sauer 2006-08-19 18:21:22
***
Bug 72890
has been marked as a duplicate of this bug. ***
Comment
#7
Stefan Nikolaus 2006-10-17 15:40:47
***
Bug 135812
has been marked as a duplicate of this bug. ***
Comment
#8
Thomas Fischer 2007-01-29 13:44:00
I can confirm, that this bug still exists in KSpread 1.6.1. Here, large numbers are shown as -2^31 in the grid widget, but correctly in the line edit below the toolbars. As far as I can see, it happens both if you enter a large number or load a CSV file containing cells with large numbers. Therefore,
bug 137569
is most likely a duplicate.
Comment
#9
Stefan Nikolaus 2007-01-31 12:00:35
SVN commit 628769 by nikolaus: Formula Use 'long' in all integer related places. CCBUG: 127599 M +2 -2 formula.cc M +1 -1 formula.h M +2 -2 kspread_value.cc --- branches/koffice/1.6/koffice/kspread/formula.cc #628768:628769 @@ -240,9 +240,9 @@ // FIXME check also for i18n version } -int Token::asInteger() const +long Token::asInteger() const { - if( isInteger() ) return m_text.toInt(); + if( isInteger() ) return m_text.toLong(); else return 0; } --- branches/koffice/1.6/koffice/kspread/formula.h #628768:628769 @@ -159,7 +159,7 @@ * Returns integer value for an integer token. * For any other type of token, returns 0. */ - int asInteger() const; + long asInteger() const; /** * Returns floating-point value for a floating-point token. --- branches/koffice/1.6/koffice/kspread/kspread_value.cc #628768:628769 @@ -478,7 +478,7 @@ result = d->i; if( type() == Value::Float ) - result = static_cast<int>(d->f); + result = static_cast<long>(d->f); return result; } @@ -853,7 +853,7 @@ if( ( t1 == Integer ) && ( t2 == Integer ) ) { long p = asInteger(); - long q = v.asInteger(); + long q = v.asInteger(); return ( p == q ) ? 0 : ( p < q ) ? -1 : 1; }
Comment
#10
Tais M Hansen 2007-04-19 11:15:58
This is still an issue in 1.6.2.
Comment
#11
Théophile Helleboid 2007-06-24 14:38:56
still exists in Kspread 1.6.2
Comment
#12
Marvin Hankley 2007-08-10 12:17:08
Problem still occurs in KSpread 1.6.3
Comment
#13
Marvin Hankley 2007-12-07 20:55:22
Problem still occurs in KSpread 2.0-alpha-5 (KDE 4.0 Beta 4).
Comment
#14
Marvin Hankley 2007-12-07 20:59:20
Created an attachment (id=22405)
[details]
Screenshot of bug Screenshot of the bug taken with KSpread 2.0 alpha 5 - note different values between formula bar and cell itself.
P
latform
:
unspecified
O
S
:
Linux
K
eywords
:
U
RL
:
People
Reporter
:
Marcel Meyer
Assigned To
:
Laurent Montel
CC
:
aumuell reserv at
bugs-kde olo org pl
chtitux gmail com
dietmar frohboese web de
fischer unix-ag uni-kl de
martin hohenberg gmail com
marvin hankley googlemail com
Related actions
View Bug Activity
Format For Printing
XML
Clone This Bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Attachments
Screenshot of bug
(97.74 KB, image/png)
2007-12-07 20:59
,
Marvin Hankley
Details
View All
Add an attachment
(proposed patch, testcase, etc.)
Depends on
:
B
locks
:
Show dependency tree
-
Show dependency graph
First
Last
Prev
Next
No search results available
Search page
Actions
Reports
Requests
Reports
Bugs reported today
Bugs reported in the last 3 days
Bug reports with patches
Weekly Bug statistics
The most hated bugs
The most severe bugs
The most frequently reported bugs
The most wanted features
Junior Jobs
Report ownership counts and charts
My Account
New Account
Log In