I have a store d procedure that takes a decimal from a datagrid and places it into a database. for example my grid(and the procedure) is putting in .412 but in the database it comes out as 0.412000000476837. why is this and is there a way I can keep the decimal places down to just what I entered? the database field is a float. Th proc is just a simple update procedure.
UPDATE smf_CustomerPartPriceBreaks_TEST
SET UnitRackPrice = @rackadjustment,
UnitBulkPrice = @bulkadjustment
FROM [SMFDATA].[dbo].[smf_CustomerPartPriceBreaks_TEST]
join smf_CustomerParts on smf_CustomerParts.QuoteID = smf_CustomerPartPriceBreaks_TEST.QuoteId WHERE RTRIM(CustomerPartNumb) = @part
the @rackadjustment and @bulkadjustment parameters are the simple decimals i am entering the numbers for.