When I use EF to add or modify data in the code assignment as follows: 1.259999999 saved in the database after the completion of execution is 1.25
CodePudding user response:
You can first rounded down to save the database processingCodePudding user response:
Then you use Math. RoundCodePudding user response:
First round and then saveCodePudding user response:
Assignment of rounded bai directly