How could I convert data from string to long in c#

前端 未结 9 2154
慢半拍i
慢半拍i 2021-02-02 04:45

How could i convert data from string to long in C#?

I have data

String strValue[i] =\"1100.25\";

now i want it in

long         


        
9条回答
  •  滥情空心
    2021-02-02 05:19

    This answer no longer works, and I cannot come up with anything better then the other answers (see below) listed here. Please review and up-vote them.

    Convert.ToInt64("1100.25")
    

    Method signature from MSDN:

    public static long ToInt64(
        string value
    )
    

提交回复
热议问题