Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362729 - Exception on mathLib.round of decimal variable
Summary: Exception on mathLib.round of decimal variable
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-11-02 17:37 EDT by broy2 CLA
Modified: 2017-02-23 14:17 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description broy2 CLA 2011-11-02 17:37:30 EDT
Use EUNIT to run:

library roundDecimal
	function roundDecimal() {@Test}		
	decimalX decimal(18,6);
	result decimal(18, 6);							
		decimalX = 000123499999.000000;
		I int = 6;
		try
		result = mathLib.round(decimalX,I);	
		        onException(oops AnyException)
            LogResult.failed("Exception");
            exit;
        end	
		LogResult.assertDecimalEqual("roundDecimal", 000123000000.000000, result);
	end
end

When debugging, I see:
eglx.javascript.JavaScriptObjectException x.scale is not a function
Comment 1 broy2 CLA 2011-11-21 15:53:43 EST
Fixed in 20111121 build.
Comment 2 broy2 CLA 2011-11-21 15:53:56 EST
Verified.