MCPcopy Create free account
hub / github.com/Bitbox-Connect/Bitbox / floatToString

Function floatToString

client/src/assets/images/3d Spline Image/opentype.js:828–834  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

826 decimalPlaces = decimalPlaces !== undefined ? decimalPlaces : 2;
827
828 function floatToString(v) {
829 if (Math.round(v) === v) {
830 return '' + Math.round(v);
831 } else {
832 return v.toFixed(decimalPlaces);
833 }
834 }
835
836 function packValues() {
837 var arguments$1 = arguments;

Callers 1

packValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected