MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / getFloat

Function getFloat

front/common.js:2786–2786  ·  view source on GitHub ↗
(id, def = 0.0)

Source from the content-addressed store, hash-verified

2784 const getValue = (id, def = '') => document.getElementById(id)?.value.trim() || def;
2785 const getInt = (id, def = 0) => parseInt(document.getElementById(id)?.value) || def;
2786 const getFloat = (id, def = 0.0) => parseFloat(document.getElementById(id)?.value) || def;
2787 const getChecked = (id, def = false) => document.getElementById(id)?.checked || def;
2788
2789 const config = {

Callers 1

saveConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected