parsing currency to decimal

best way to convert "$10" to decimal is:


decimal d = decimal.Parse("$45.00", NumberStyles.Currency);

OR 

decimal.TryParse("$45.00", NumberStyles.Currency, culture, out d);

Comments

Popular posts from this blog

OCR text detection with google APIs C#

The specified version string contains wildcards, which are not compatible with determinism.

How to set dynamically height/width of an external image in rdlc report?