这对某些人来说似乎是一个愚蠢的问题,但我需要将一个双精度数转换成十进制来用作货币.M去哪儿了?
decimal dtot = (decimal)(doubleTotal);
c# casting currency decimal
c# ×1
casting ×1
currency ×1
decimal ×1