Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360535 - Remove $Modulo from eglx.lang.EFloat.egl
Summary: Remove $Modulo from eglx.lang.EFloat.egl
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-11 08:35 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:19 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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