Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349855 - String pdecimal = Double.toString(guess); special character in toString result.
Summary: String pdecimal = Double.toString(guess); special character in toString result.
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-20 13:40 EDT by john93940 CLA
Modified: 2011-06-20 13:48 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description john93940 CLA 2011-06-20 13:40:57 EDT
Build Identifier: Version: 3.4.2 Build id: M20090211-1700

String pdecimal = Double.toString(guess);  'guess' is a double field with a decimal point.  Sometimes a parenthesis or an asterisk replaces the last 'digit' of 'pdecimal'.  If it's a parenthesis then it replaced an '8'.  If an asterisk then it replaced a '9'.

Reproducible: Sometimes

Steps to Reproduce:
1. do some calculations in the double field 'guess'.
2. String pdecimal = Double.toString(guess);
3. look at pdecimal.
Comment 1 Oleg Besedin CLA 2011-06-20 13:48:31 EDT
From your description, this sounds as a Java bug. I'd suggest opening a bug request with the maker of the JVM that you are using.