MCPcopy Index your code
hub / github.com/anomalyco/opencode / integer

Function integer

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

Source from the content-addressed store, hash-verified

231}
232
233function integer(data: AthenaData, key: string) {
234 return Math.round(number(data, key))
235}
236
237function nullableNumber(data: AthenaData, key: string) {
238 if (data[key] === undefined || data[key] === "") return null

Callers 3

toStatBaseAggregateFunction · 0.70
sqlite.test.tsFile · 0.50
basic.tsFile · 0.50

Calls 1

numberFunction · 0.70

Tested by

no test coverage detected