Hi, I have this syntax:
DATA LIST FREE /PESO (F) VAR1 (A2).
BEGIN DATA
115 A
85 B
END DATA.
DATASET NAME TESTE.
WEIGHT BY PESO.
CTABLES
/VLABELS VARIABLES=VAR1 DISPLAY=LABEL
/TABLE VAR1 [COUNT F40.0, COLPCT.COUNT PCT40.1]
/CATEGORIES VARIABLES=VAR1 ORDER=A KEY=VALUE EMPTY=EXCLUDE
/CRITERIA CILEVEL=95.
CTABLES
/VLABELS VARIABLES=VAR1 DISPLAY=LABEL
/TABLE VAR1 [COUNT F40.0, COLPCT.COUNT PCT40.0]
/CATEGORIES VARIABLES=VAR1 ORDER=A KEY=VALUE EMPTY=EXCLUDE
/CRITERIA CILEVEL=95.
Notice that 57.5% is rounded to 57% instead of the expected 58%.
57.5% is represented in SPSS Statistics as 57,49999999999999% and if you use RND function in the data editor you got (correctly) 58% (thanks to Fuzzbit). But we got a different behavior in Output Viewer.
IBM support told me that this is the designed behavior!!!!
Do you agree with that?
Show data editor and output viewer use the same algorithm when rounding numbers???
#SPSSStatistics#Support#SupportMigration