MCPcopy Create free account
hub / github.com/anomalyco/opencode / nullableNumber

Function nullableNumber

packages/stats/core/src/domain/inference.ts:237–240  ·  view source on GitHub ↗
(data: AthenaData, key: string)

Source from the content-addressed store, hash-verified

235}
236
237function nullableNumber(data: AthenaData, key: string) {
238 if (data[key] === undefined || data[key] === "") return null
239 return Number(number(data, key).toFixed(2))
240}
241
242function nullableInteger(data: AthenaData, key: string) {
243 if (data[key] === undefined || data[key] === "") return null

Callers 1

toStatBaseAggregateFunction · 0.70

Calls 1

numberFunction · 0.70

Tested by

no test coverage detected