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

Function formatResistance

app/dashboardPage.tsx:800–807  ·  view source on GitHub ↗
(resistance: any)

Source from the content-addressed store, hash-verified

798 : format(voltage, { lowerExp: -2, upperExp: 2 }) + " V"
799 }`;
800const formatResistance = (resistance: any) =>
801 `${
802 resistance < 1
803 ? round(unit(Number(resistance), "ohm").toNumeric("mohm")) + " mΩ"
804 : resistance >= 1000
805 ? round(unit(Number(resistance), "ohm").toNumeric("kohm")) + " kΩ"
806 : format(resistance, { lowerExp: -2, upperExp: 2 }) + " Ω"
807 }`;
808const formatPower = (power: any) =>
809 `${
810 power < 1

Callers 1

PartItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected