DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page IObservableValue does not display actual double data type in swt Text object
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Sep 2008
Default IObservableValue does not display actual double data type in swt Text object - 09-15-2008, 11:15 AM

Hi,

I have an IObservableValue inside a DataBindingContext that observes a double data type. When displaying the double value in swt Text object, the actual double value is rounded to three decimals.

Has anyone run into this? How do you go around this issue?

Example:

double myValue = 0.0006127 is displayed as 0.007. I need the exact double value to be displayed.

I tried to use a DecimalFormat and then convert it to String to display in Text object but the databinding context needs a IObservableValue.

Please help:)

Thanks,
JayDev
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Holy Double-espresso, Batman! Where's my Javalobby? rick Zones 17 09-15-2009 07:33 PM
filter & sorting data using DataView object Asp.net ashfk .NET 0 12-10-2008 11:36 PM
Move Member Type to New File jackm Eclipse 0 09-24-2008 06:59 PM
.Raw Image display mcmmoreira Java 1 09-23-2008 08:22 AM
Unsupported content type in editor rick Eclipse 1 01-30-2008 05:45 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com