Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364063 - stringLib.format of numeric returns null
Summary: stringLib.format of numeric returns null
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:
: 363351 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-17 11:50 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-17 11:50:35 EST
This is part of api.systemTypes.
Use EUnit to run:

library formatSmallInt
    mySmallInt smallInt;
    myString string;
    function formatSmallInt(){@Test}
        mySmallInt = 1005;
        try
            myString = stringLib.format(mySmallInt, "$+***,***");
        onException(oops AnyException)
            LogResult.failed("Exception");
            exit;
        end
        myString = "$+**1,005";
        LogResult.assertStringEqual1("$+**1,005", myString);
    end
end

The format returns null.
It should return $+**1,005.

This is true for all of the numeric types.
smallInt
int
bigInt
decimal
smallFloat
float
Comment 1 broy2 CLA 2011-11-19 10:22:22 EST
*** Bug 363351 has been marked as a duplicate of this bug. ***
Comment 2 broy2 CLA 2011-11-21 16:00:02 EST
Fixed in 20111121 build.
Comment 3 broy2 CLA 2011-11-21 16:00:16 EST
Verified.