This application provides a
smoothing filtering method, apparatus, electronic device, and storage medium for a
fuel gauge, relating to the field of battery power technology. The
smoothing filtering method includes: determining whether the battery is in a charging or discharging state; determining whether the actual
battery charge at a later time is greater than the actual charge at a previous time; and determining whether the change in the actual
battery charge at a later time is greater than a first preset threshold; if the change in the actual
battery charge at a later time is greater than the first preset threshold, determining an adjustment step size based on the change in the actual battery charge, and adjusting the displayed charge of the
fuel gauge according to the adjustment step size; if the change in the actual battery charge at a later time is less than or equal to the first preset threshold, adjusting the displayed charge of the
fuel gauge proportionally. The method provided in this application satisfies the theoretical relationship F_SOC = F_RC / F_FCC while simultaneously achieving a smooth data transition perceived by the user.