Skip to main content
Advanced

tscircuit Units

In tscircuit you can specify a unit explicitly with a string e.g. "0.1mm", but you can also also specify numbers without units and the unit will be inferred from platform, board configuration, subcircuit configuration or the defaults below

Default Units​

By default, tscircuit uses the following base units:

Measurement TypeBase UnitDescription
LengthmmMillimeters
TimemsMilliseconds
MassgGrams
AngledegDegrees
FrequencyHzHertz
VolumemlMilliliters
VoltageVVolts
CurrentAAmperes
ResistanceΩOhms
CapacitanceFFarads
InductanceHHenries

Base units are chosen based on the industry convention.