You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this method should return absFloor(float64(d.InHours()) / 24) 。
When the value of float64(d.InHours()) / 24 is negative, math.Floor() will calculate the nearest negative integer but less than float64(d.InHours()) / 24, the absFloor is meaningless
The text was updated successfully, but these errors were encountered:
func (d diff) InDays() int { return absFloor(math.Floor(float64(d.InHours()) / 24)) }
this method should return absFloor(float64(d.InHours()) / 24) 。
When the value of float64(d.InHours()) / 24 is negative, math.Floor() will calculate the nearest negative integer but less than float64(d.InHours()) / 24, the absFloor is meaningless
The text was updated successfully, but these errors were encountered: