MCPcopy Create free account
hub / github.com/chart-kit/react-native-chart-kit-example / roundPrice

Function roundPrice

src/fixtures/v2Finance.ts:12–12  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

10export type StockCandleInterval = "1D" | "1W" | "1M";
11
12const roundPrice = (value: number) => Math.round(value * 100) / 100;
13
14const toIsoDay = (date: Date) => date.toISOString().slice(0, 10);
15

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected