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.
目前我有一个 Double 看起来像 12.53467345 .. 现在我想删除点后的数字所以我只得到“12”,我该怎么做?我猜想使用 TryParse,但并不真正了解如何去做。
谢谢!
System.Math.Floor()
参考。
或使用该Int()功能。
Int()
' This code requires Option Strict Off Dim MyNumber As Integer MyNumber = Int(99.8)
MSDN 参考