I have a datawindow that is making use of a MSS6.5 stored procedure. All columns are of type real and the stored procedure produces a table with columns of type real. Without formatting the values I can see the data is correct. When I add formatting to "0.0" all values are correctly rounded except 9.9xxx. Somehow in PowerBuilder's infinite wisdom it takes 9.9xxx and rounds it to 9.8. The unformatted value I'm dealing with is 9.94581. With PB's special formatting technique, that rounds to 9.8! After looking into it a bit more I've found the following:
9.95 < Value; Value rounds to 10.0
9.75 <= Value <= 9.95; Value rounds to 9.8
Has anyone else noticed this? Is there a logical cause or solution?
Thanks,
Cathy
9.95 < Value; Value rounds to 10.0
9.75 <= Value <= 9.95; Value rounds to 9.8
Has anyone else noticed this? Is there a logical cause or solution?
Thanks,
Cathy