We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PercentTextBox with wrong DoubleValue

Thread ID:

Created:

Updated:

Platform:

Replies:

55423 Jan 30,2007 09:26 AM UTC Feb 1,2007 09:51 AM UTC Windows Forms 4
loading
Tags: Tools
Michael Mann
Asked On January 30, 2007 09:26 AM UTC

Hi everybody,

I am using a PercentTextBox with PercentDecimalDigits set to 3. What I want to enter into the box is 44,625, but the value stored in DoubleValue is 0.44624999999999998.

The attached screenshot displays all debugging information and values of the textbox' properties.

Why is that or what I am missing?

Any help appreciated

Thank you
Michael

PercentTextBox.zip

Poly J [Syncfusion]
Replied On January 30, 2007 06:22 PM UTC

Hi Michael,

Please define the PercentDecimalDigits before PercentValue.Please try this sample and let me know if you still have the issue.
PercentageTextBoxSample


Please let us know the Syncfusion version you are using.

Best Regards,
Poly

Poly J [Syncfusion]
Replied On January 30, 2007 06:22 PM UTC

Hi Michael,

Please define the PercentDecimalDigits before PercentValue.Please try this sample and let me know if you still have the issue.
PercentageTextBoxSample


Please let us know the Syncfusion version you are using.

Best Regards,
Poly

Michael Mann
Replied On January 31, 2007 08:57 AM UTC

hi,
thanks for your reply. But I have a completely other problem:

I only use the PercentTextBox to fetch the value the users entered. So I don't assign a value to the PercentValue property, I only use the DoubleValue to get the value, that is in InternalValue. The property you mentioned has been set, before fetching the value. Seems to me as a bug. I am using v4.101.0.58

Golda Rebecal [Syncfusion]
Replied On February 1, 2007 09:51 AM UTC

Hi Michael,

I tested this issue in version 4.1.0.58. I could see the Double Value of 44.625% being 0.44625.

Could you please modify the sample attached so that this issue could be seen clearly.

Thanks,
Golda

percenttextvalue.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;