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

 
 

bug #12035: DATA LIST implicit decimals

Submitter:  John Darrington <jmd>
Submitted:  Sat 19 Feb 2005 11:59:22 AM UTC
   
 
Category:  Numerical Errors Severity:  5 - Average
Status:  None Assigned to:  blp
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

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

A fix has been checked in to the CVS repository

Ben Pfaff <blp>
Group administrator
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>
Group 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>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-03-07 blp Open/ClosedOpen Closed
2005-02-26 jmd Assigned toNone blp
    SummaryAGGREGATE gets its sums wrong! DATA LIST implicit decimals

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code