Decimal Places in XP

  • Thread starter Thread starter Jordan M.
  • Start date Start date
J

Jordan M.

Hi,

In my windows application, values in listview is being displayed as 2.31, 2,
4.3, etc... in client machine with Windows 2000 installed but in Windows XP
machines it is being displayed as 2.31000, 4.00000, 4.30000, etc...

Does it have anything to do with the client setting? If so, how do i reset
it so that it displays the same result as the Windows 2000 client?

Thanks in advanced.

Regards,
Jordan
 
Hi Jordan,

You could add pre-formatted strings to the ListView instead of the raw
numbers and use a consistent custom format string to pre-format the numeric
values.
You could also go even further and create a customized NumberFormat instance
to have full control over the formatting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top