bugPSPP - Bugs: bug #12035, DATA LIST implicit decimals

 
 

bug #12035: DATA LIST implicit decimals

Submitted by:  John Darrington <jmd>
Submitted on:  Sat 19 Feb 2005 11:59:22 AM UTC  
 
Category: Numerical ErrorsSeverity: 5 - Average
Status: NoneAssigned to: Ben Pfaff <blp>
Open/Closed: ClosedRelease: None
Effort: 0.00

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 07 Mar 2005 06:25:48 AM UTC, comment #2:

A fix has been checked in to the CVS repository

Ben Pfaff <blp>
Project AdministratorIn charge of this item.
Sat 26 Feb 2005 10:49:12 AM UTC, comment #1:

Apparently this is caused because of implicit decimals being
incorrectly applied in FREE format whereas they should only
be implied in FIXED format.

In data_in.c :

else if (!got_dot )
exponent -= i->format.d;

This should be contional upon implicit decimals being appropriate.

John Darrington <jmd>
Project Administrator
Sat 19 Feb 2005 11:59:22 AM UTC, original submission:

This input file:

DATA LIST LIST /x (F8.2) y (a25).
BEGIN DATA.
87.50 foo
87.34 bar
9 bar
END DATA.

AGGREGATE /BREAK=y /z=SUM(x).

LIST /z y .

produces this output:

Z Y
-------- -------------------------
87.43 bar
87.50 foo

wheras it should be:

Z Y
--------------
96.34 bar
87.50 foo

John Darrington <jmd>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 07 Mar 2005 06:25:48 AM UTCblpOpen/ClosedOpen=>Closed
Sat 26 Feb 2005 10:49:12 AM UTCjmdAssigned toNone=>blp
  SummaryAGGREGATE gets its sums wrong!=>DATA LIST implicit decimals

Back to the top


Powered by Savane 3.1-cleanup1