I found that most likely I can use double instead,
The data type is an unprecise value, while decimal is a precise one.
See https://learn.microsoft.com/en-us/dotnet/api/system.double?view=net-6.0
=> Precision
In this case, the floating-point value provides an imprecise representation of the number that it represents. Performing additional mathematical operations on the original floating-point value often tends to increase its lack of precision