Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360535

Summary: Remove $Modulo from eglx.lang.EFloat.egl
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.language-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-10-11 08:35:09 EDT
This code

		floatActual = 2.539E7 % 2;
		floatExpect = 1;

results in this validation message

IWN.VAL.5049.e 148/17 EFloat004 - The primitive type float for 2.539E7 is not valid for use with the % operator. 

Just like in RBD.  So I think 

static function $Modulo(lvalue EFloat in, rvalue EFloat in) returns (EFloat) {@Operation{"%"}};

needs to be removed from eglx.lang.EFloat.egl
Comment 1 Paul Harmon CLA 2011-10-27 17:56:32 EDT
I have removed the validaiton check in DefaultBinder and verified that java and JS both support modulo with floats
Comment 2 Kathy Carroll CLA 2011-11-11 13:52:47 EST
changed test scenario to
function tester() {@Test}
        actual int = 2.539E3 % 2;
        expected int = 1;
		Logresult.assertBigIntEqual1(expected, actual);

end

validated works on java.  unable to verify with javascript

verified with 20111111_0901 and closed