Closed Kalabasa closed 4 years ago
console.log('found best %d after %d probes', Math.round(1e4 * cell.d) / 1e4, numProbes);
This prints cell.d as %d which is an integer. It will print values lower than 1 as just 0.
cell.d
%d
0
Fix: Use %f to print decimal.
%f
This prints
cell.d
as%d
which is an integer. It will print values lower than 1 as just0
.Fix: Use
%f
to print decimal.