MCPcopy Create free account
hub / github.com/bytebase/bytebase / toFloat

Function toFloat

frontend/src/utils/v1/sql.ts:452–458  ·  view source on GitHub ↗
(a: unknown)

Source from the content-addressed store, hash-verified

450};
451
452const toFloat = (a: unknown) => {
453 return typeof a === "number"
454 ? a
455 : typeof a === "string"
456 ? parseFloat(a)
457 : Number(a);
458};

Callers 1

compareQueryRowValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected