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

Function formatPower

app/dashboardPage.tsx:808–813  ·  view source on GitHub ↗
(power: any)

Source from the content-addressed store, hash-verified

806 : format(resistance, { lowerExp: -2, upperExp: 2 }) + " Ω"
807 }`;
808const formatPower = (power: any) =>
809 `${
810 power < 1
811 ? round(unit(Number(power), "W").toNumeric("mW")) + " mW"
812 : format(power, { lowerExp: -2, upperExp: 2 }) + " W"
813 }`;
814const formatCurrent = (current: any) =>
815 `${
816 current < 1

Callers 1

PartItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected