I have a table in SQL Server that has a column with datatype float
. I wrote a stored procedure for inserting the record and it also accepts the parameter as float
.
However Entity Framework generated the method with datatype double
. So when I add 0.3 from my .NET client, it is changed to 0.300000011920929 however I need to add the exact value I added that is 0.3.
Any ideas how to fix this?
Thanks.