MCPcopy Create free account
hub / github.com/ampproject/amphtml / toFloat

Function toFloat

third_party/resize-observer-polyfill/ResizeObserver.js:177–179  ·  view source on GitHub ↗

* Converts provided string to a number. * * @param {number|string} value * @returns {number}

(value)

Source from the content-addressed store, hash-verified

175 * @returns {number}
176 */
177 function toFloat(value) {
178 return parseFloat(value) || 0;
179 }
180 /**
181 * Extracts borders size from provided styles.
182 *

Callers 3

getBordersSizeFunction · 0.70
getPaddingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected