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

Function formatVoltage

app/dashboardPage.tsx:794–799  ·  view source on GitHub ↗
(voltage: any)

Source from the content-addressed store, hash-verified

792}
793
794const formatVoltage = (voltage: any) =>
795 `${
796 voltage < 1
797 ? round(unit(Number(voltage), "V").toNumeric("mV")) + " mV"
798 : format(voltage, { lowerExp: -2, upperExp: 2 }) + " V"
799 }`;
800const formatResistance = (resistance: any) =>
801 `${
802 resistance < 1

Callers 1

PartItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected