3
是否有可能在.NET中使用numeric format strings截斷數字?目前,我正在使用N0
作爲double
,但是這個值會變大。由於庫限制,我必須使用格式字符串。使用數字格式字符串截斷數字
是否有可能在.NET中使用numeric format strings截斷數字?目前,我正在使用N0
作爲double
,但是這個值會變大。由於庫限制,我必須使用格式字符串。使用數字格式字符串截斷數字
看來,這是不可行的,因爲:
"D"
is only supported for integral types"N"
rounds"0"
rounds"#"
rounds