MCPcopy Create free account
hub / github.com/PartPilotLab/PartPilot / formatCurrent

Function formatCurrent

app/dashboardPage.tsx:814–819  ·  view source on GitHub ↗
(current: any)

Source from the content-addressed store, hash-verified

812 : format(power, { lowerExp: -2, upperExp: 2 }) + " W"
813 }`;
814const formatCurrent = (current: any) =>
815 `${
816 current < 1
817 ? round(unit(Number(current), "A").toNumeric("mA")) + " mA"
818 : format(current, { lowerExp: -2, upperExp: 2 }) + " A"
819 }`;
820const formatFrequency = (frequency: any) =>
821 `${
822 frequency < 1

Callers 1

PartItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected