C# Check if a decimal has more than 3 decimal places?

后端 未结 13 1862
一生所求
一生所求 2020-12-03 14:04

I have a situation that I cannot change: one database table (table A) accepts 6 decimal places, while a related column in a different table (table B) only has 3 decimal plac

13条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-03 14:32

    could you convert it to a string and just do a len function or would that not cover your situation?

    follow up question: would 300.4 be ok?

提交回复
热议问题