PC Review


Reply
Thread Tools Rate Thread

Convert Price.ToString("C2") to decimal again?

 
 
Steven Spits
Guest
Posts: n/a
 
      21st Jan 2006
Hi,

Suppose decimal Price contains 12,3. Price.ToString("C2") gives 12,30 ?
(yes, I'm located in Europe).

What would be the best way to convert this string to a decimal again?

Steven

- - -


 
Reply With Quote
 
 
 
 
Tim Wilson
Guest
Posts: n/a
 
      21st Jan 2006
See the Decimal.Parse method.
http://msdn.microsoft.com/library/de...parsetopic.asp

--
Tim Wilson
..NET Compact Framework MVP

"Steven Spits" <(E-Mail Removed)> wrote in message
news:%23EWTO%(E-Mail Removed)...
> Hi,
>
> Suppose decimal Price contains 12,3. Price.ToString("C2") gives 12,30 ?
> (yes, I'm located in Europe).
>
> What would be the best way to convert this string to a decimal again?
>
> Steven
>
> - - -
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
How to convert Decimal number with comma(,) as decimal separator to dot(.) Domac Microsoft Access 5 10th May 2006 02:12 PM
How to convert Decimal number with comma(,) as decimal separator to dot(.) Domac Microsoft Access 1 10th May 2006 01:04 PM
How to convert Decimal number with comma(,) as decimal separator to dot(.) Domac Microsoft Access Forms 1 10th May 2006 01:04 PM
How to convert Decimal number with comma(,) as decimal separator to dot(.) Domac Microsoft Access Reports 1 10th May 2006 01:04 PM
How to convert a decimal number to a non-decimal number? =?Utf-8?B?c25pY2tlcnMyMg==?= Microsoft Excel Worksheet Functions 4 13th Jan 2005 11:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:32 PM.