编辑代码

using System;

public class HelloWorld
{
    public static void Main()
    {
        Console.WriteLine("HELLO world!     - cs.jsrun.net ");
        var str="5834.0";
        Console.WriteLine(str.Substring(0, str.LastIndexOf(".0")));
        var list=new string[]{"aard","5834.0","strong"};
        //list.Where(p => p.Trim().EndsWith(".0")).ToList().ForEach(p => p = p.Substring(0, p.LastIndexOf(".0")));
        list.ForEach(p=>Console.WriteLine(p));
    }
}