• Admin-Scout-small-Banner
           
    CURSOR Admin-Scout
    get the ultimate tool for Informix
    pfeil  
invispix 10x10
invispix 10x10
Latest versionsfixlist
14.10.xC10 FixList
12.10.xC15.X5 FixList
11.70.xC9.XB FixList
11.50.xC9.X2 FixList
11.10.xC3.W5 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

Informix - Problem description

Problem IT42333 Status: Closed

CALCULATION WITH DECIMAL WHEN RESULT IS 0 MAY CREATE A WRONG RESULT

product:
INFORMIX SERVER / 5725A3900 / E10 - 
Problem description:
A
SELECT SUM(insur / change)
results in 0.

But
select case when vol_cu::DEC(24,8) == 0 then "vol_cu is 0 " else
"vol_cu is not 0" end from temp_1;
select case when vol_cu == 0 then "vol_cu is 0 " else "vol_cu is
not 0" end from temp_1;

gives

(expression)
vol_cu is 0

(expression)
vol_cu is not 0
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* IDS-14.10.XC9 onwards                                        *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* calculation with decimal when result is 0 may create a wrong *
* result                                                       *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
Local Fix:
Solution
Workaround
****************************************************************
* USERS AFFECTED:                                              *
* IDS-14.10.XC9 onwards                                        *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* calculation with decimal when result is 0 may create a wrong *
* result                                                       *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
Comment
The server is operating correctly.
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
25.10.2022
28.11.2022
24.02.2023
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
invispix 10x10
invispix 10x10
invispix 10x10
Technical InfoTechnical Info

Technical Info

DocumentationDocumentation

Documentation

IBM NewsletterIBM Newsletter

IBM Newsletter

Current BugsCurrent Bugs

Current Bugs

Bug ResearchBug Research

Bug Research

Bug FixlistsBug Fixlists

Bug Fixlists

Release NotesRelease Notes

Release Notes

Machine NotesMachine Notes

Machine Notes

Release NewsRelease News

Release News

Product LifecycleProduct Lifecycle

Lifecycle

Media DownloadMedia Download

Media Download

invispix 10x10
Service und SupportService und Support

Service and Support

Informix MonitoringInformix Monitoring

Informix Monitoring

Admin-Scout for InformixAdmin-Scout for Informix

Admin-Scout for Informix

Informix News & InfosInformix News & Infos

Informix News & Infos