Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个字符串:
string lat ="24.6669863852163";
如何将最后一个字符 '3' 替换为 '2' ?
lat = lat.Substring(0, lat.Length-1) + "2";
lat = lat.Remove(lat.Length - 1) + "2";