且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

LINQ to SQL Math.Round问题

更新时间:2023-02-10 21:24:21

我使用Decimal.Round()和以前相同的参数来使它工作. :)

I got it to work using Decimal.Round() with the same arguments as before. :)

看起来问题有点像Pavel所说的那样,十进制类型的行为不同,看起来像Math.Round并没有像他们期望的那样与它们一起工作...

Looks like the issue is somewhat on the trail of what Pavel was saying, where Decimal types behave differently and it would seem Math.Round doesn't quite work with them as one would expect it to...

感谢所有输入.