Vacansee / app

Predicting campus occupancy and room availability @ RPI
https://vacansee.github.io/app
GNU General Public License v3.0
12 stars 0 forks source link

fixed floating point approx #61

Closed BoundlessFate closed 5 months ago

BoundlessFate commented 5 months ago

In the HTML for the popup, it was set to get the heat (ex 0.55) and multiply by 100 (ex 55%) The issue with this is that the heat was floating point and multiplying by 100 caused a weird issue with floating point approx (where it showed something like ~55.0000000000001%). I just added a Math.trunc around the function for heat and it fixes the approximation issue.