C # methods for processing amount format data

Source: Internet
Author: User

1 using System;
2 using System. Collections. Generic;
3 using System. Linq;
4 using System. Text;
5 using System. Text. RegularExpressions;
6
7 namespace SystemFramework. CommonFunctions
8 {
9 /// <summary>
10 // Summary description for MoneyLib.
11 /// </summary>
12 public class MoneyManage
13 {
14 public MoneyManage ()
15 {
16 //
17 // TODO: Add constructor logic here
18 //
19}
20
21 /// <summary>
22 // check whether a string is Decimal. If not, 0.00 is returned.
23 /// </summary>
24 /// <param name = "strInput"> </param>
25 /// <returns> </returns>
26 public static string SetNullDecimal (string strInput)
27 {
28 if (! StrInput. Trim (). Equals ("") & IsNumeric (strInput ))
29 return strInput;
30 return "0.00 ";
31}
32
33 public

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.