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
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Currently we use that formula for calculating round: Math.floor(height / 101) + (height % 101 > 0 ? 1 : 0);
We can replace it with: Math.ceil(height / 101);
That will give us exact same results when height>=0 (always is).
Should be replaced in entire system, including SQL queries.
Currently we use that formula for calculating round:
Math.floor(height / 101) + (height % 101 > 0 ? 1 : 0);
We can replace it with:
Math.ceil(height / 101);
That will give us exact same results when
height>=0
(always is).Should be replaced in entire system, including SQL queries.
Issue pointed by @simonmorgenthaler
Edit:
For SQL queries:
CEIL(height / 101::float)
The text was updated successfully, but these errors were encountered: