colecody27 / Graph-Lab

https://graph-lab.vercel.app
0 stars 0 forks source link

Rounding of Heuristic Costs #9

Closed colecody27 closed 5 months ago

colecody27 commented 5 months ago

Some random heuristic costs that are generated don't round to the nearest hundredth and instead go on for a large amount of digits.

dahliasukaik commented 5 months ago

The numbers in the heuristic table were rounded well. The numbers in the frontier had this issue so I added .toFixed(2) to the frontier calculations.