Yes. The function returns variable of type float. I will try to change it to long type.
What about the main problem (After the scale and tare adjusted, the weight measurement degrades over a few hours causing errors in my measurements), do you have any suggestions?