MCPcopy Create free account
hub / github.com/breck7/scroll / optionCount

Method optionCount

external/.scrollLibs.js:18767–18773  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18765 return !isNaN(num) && /^-?\d*(\.\d+)?([eE][+-]?\d+)?$/.test(atom)
18766 }
18767 get optionCount() {
18768 // For floats, we'll estimate based on typical float32 precision
18769 // ~7 decimal digits of precision
18770 const minVal = parseInt(this.min) || -Infinity
18771 const maxVal = parseInt(this.max) || Infinity
18772 return (maxVal - minVal) * Math.pow(10, 7)
18773 }
18774 _synthesizeAtom(seed) {
18775 return Utils.randomUniformFloat(parseFloat(this.min), parseFloat(this.max), seed).toString()
18776 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected