hello,
hope everyone is doing fine
I am saving value as 14356.78 in sql database, I can see value as 14356.78 in breakpoint.
But in database it is saved as 143568, which I don't want
The datatype i tried is decimal, float and varchar, still it is rounding off automatically
I want to prevent rounding off after saving in sql db
thank you !
Guest UserPosted Nov 29, 2021, 8:57 AM
satheesh dPosted Nov 26, 2021, 10:16 AM
Sachin SinghPosted Nov 25, 2021, 10:28 AM
Guest UserPosted Nov 25, 2021, 9:39 AM
Sachin SinghPosted Nov 25, 2021, 6:59 AM
Srinivasan RamamoorthiPosted Nov 25, 2021, 3:24 AM
Jignesh KumarPosted Nov 24, 2021, 5:14 PM
Hi Sushant,
I think issue with your table column datatype. Please check your column datatype if not decimal(10, 2) then make it.
Please use this script to change datatype,
ALTER TABLE your_tablename MODIFY your_column_name decimal(10, 2)
Note : If you are using store procedure apply same change like parameter as decimal(10, 2)