Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361146 - BigInt != operation gives incorrect results
Summary: BigInt != operation gives incorrect results
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-17 10:29 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:18 EST (History)
1 user (show)

See Also:


Attachments
EGL RUI Handler source code (1.40 KB, application/octet-stream)
2011-10-17 10:29 EDT, Kathy Carroll CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Carroll CLA 2011-10-17 10:29:54 EDT
Created attachment 205333 [details]
EGL RUI Handler source code

BigInt != operation give incorrect results

run the handler.  expect all variations to produce good
Comment 1 Kathy Carroll CLA 2011-10-17 11:24:39 EDT
Decimal has same issue
	function runComparisonFunction33d()
		int1 decimal(5,2) = 75;
		int2 decimal(5,2) = 328;
		result boolean = (int1 != int2);
	    if (result)
            syslib.writestdout("good");
        else
            syslib.writeStdout("bad");
        end
	end
	
	function runComparisonFunction34d() 
		int1 decimal(5,2) = 75;
		int2 decimal(5,2) = 75;
		result boolean  = (int1 != int2);
		if (!result)
            syslib.writestdout("good");
        else
            syslib.writeStdout("bad");
        end
	end
Comment 2 Scott Greer CLA 2011-10-17 16:39:02 EDT
Fixed both BigInt and Decimal, along with a similar problem in Float.
Comment 3 Kathy Carroll CLA 2011-10-18 07:32:44 EDT
Verified with 201110172101 & closed