MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / floatToString

Function floatToString

libraries/p5.js:2762–2768  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

2760 decimalPlaces = decimalPlaces !== undefined ? decimalPlaces : 2;
2761
2762 function floatToString(v) {
2763 if (Math.round(v) === v) {
2764 return '' + Math.round(v);
2765 } else {
2766 return v.toFixed(decimalPlaces);
2767 }
2768 }
2769
2770 function packValues() {
2771 var s = '';

Callers 1

packValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected