Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364219 - Exception on MathLib.decimals when variable defined as decimalX decimal = -000000000000.000480;
Summary: Exception on MathLib.decimals when variable defined as decimalX decimal = -00...
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-19 09:24 EST 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-19 09:24:16 EST
Use EUNIT to run:

library decimals
    function decimalsTest() {@Test}
        result decimal(18, 6);
        decimalX decimal = -000000000000.000480;
        try
            result = MathLib.decimals(decimalX);
        onException(oops AnyException)
            LogResult.failed("Exception");
            exit;
        end
        LogResult.assertDecimalEqual("decimals", 6, result);
    end
end

AnyException [CRRUI2074E] Math error: Could not convert string "d" to a number

When I change the definition, the test runs OK.
        decimalX decimal(18,6);
        decimalX = -000000000000.000480;
Comment 1 broy2 CLA 2011-11-21 17:11:21 EST
Fixed in 20111121 build.
Comment 2 broy2 CLA 2011-11-21 17:11:36 EST
Verified.