I am trying to sum values registred in database as float with EF Core
public async Task<double> ObtenirTotalStockParSiteAsync(long siteId)
=> await Queryable.Where(snapshot => snapshot.SiteId == siteId).SumAsync(snapshot => snapshot.Quantite).ConfigureAwait(false);
The value registred in database is 40,005
But, the value returned with SumAsync is : 40.004999999999995
Can you help please to get 40,005
Quantite has the type float in my Sql Server Database