Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362000 - "string as decimal" loses decimals
Summary: "string as decimal" loses decimals
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-25 16:13 EDT by Justin Spadea CLA
Modified: 2017-02-23 14:15 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Spadea CLA 2011-10-25 16:13:24 EDT
d1 decimal = "0.1";
=> d1 has value 0.

d2 decimal = "3.45";
=> d2 has value 3.

The same in Java returns what you'd expect (0.1 and 3.45, respectively).
Comment 1 Justin Spadea CLA 2011-10-26 09:43:22 EDT
Bumping importance since MVC is very reliant on string-to-decimal conversions working. Right now you pretty much can't use values with decimals in MVC.
Comment 2 Scott Greer CLA 2011-10-26 14:07:42 EDT
Fixed
Comment 3 Justin Spadea CLA 2011-11-01 16:00:42 EDT
Verified