Compare commits

...

3 Commits

Author SHA1 Message Date
Codex Agent
d7bf6e8135 Add circular mil and clove converters 2026-03-08 03:38:39 +00:00
Codex Agent
48d255dbe9 Add next 40 backlog calculators (century, cfs, chain, circular mil) 2026-03-08 03:35:02 +00:00
Codex Agent
35c8f721ed Add next 40 backlog calculators 2026-03-08 03:30:16 +00:00
3 changed files with 285 additions and 121 deletions

View File

@@ -4793,131 +4793,131 @@ The registry currently contains 1333 unique calculator slugs.
- [x] Centiliters to Us Pints
- [x] Centimeters Per Second to Cm Per Second
- [x] Centimeters Per Second to Feet Per Second
- [ ] Centimeters Per Second to Furlongs Per Fortnight
- [ ] Centimeters Per Second to Inches Per Second
- [x] Centimeters Per Second to Furlongs Per Fortnight
- [x] Centimeters Per Second to Inches Per Second
- [x] Centimeters Per Second to Kilometers Per Hour
- [ ] Centimeters Per Second to km/s
- [ ] Centimeters Per Second to Knots
- [ ] Centimeters Per Second to Leagues Per Hour
- [ ] Centimeters Per Second to Mach
- [ ] Centimeters Per Second to Meters Per Second
- [ ] Centimeters Per Second to Miles Per Hour
- [x] Centimeters Per Second to km/s
- [x] Centimeters Per Second to Knots
- [x] Centimeters Per Second to Leagues Per Hour
- [x] Centimeters Per Second to Mach
- [x] Centimeters Per Second to Meters Per Second
- [x] Centimeters Per Second to Miles Per Hour
- [x] Centimeters Per Second to Speed Of Light
- [x] Centimeters Per Second to Speed Of Light (c)
- [ ] Centimeters Per Second to Yards Per Second
- [ ] Centimeters to Angstroms
- [ ] Centimeters to Astronomical Units
- [ ] Centimeters to Cables
- [ ] Centimeters to Chains
- [ ] Centimeters to Fathoms
- [ ] Centimeters to Fermi
- [ ] Centimeters to Furlongs
- [ ] Centimeters to Leagues
- [x] Centimeters Per Second to Yards Per Second
- [x] Centimeters to Angstroms
- [x] Centimeters to Astronomical Units
- [x] Centimeters to Cables
- [x] Centimeters to Chains
- [x] Centimeters to Fathoms
- [x] Centimeters to Fermi
- [x] Centimeters to Furlongs
- [x] Centimeters to Leagues
- [x] Centimeters to Light Years
- [ ] Centimeters to Micrometers
- [ ] Centimeters to Microns
- [ ] Centimeters to Miles
- [ ] Centimeters to Nanometers
- [ ] Centimeters to Nautical Miles
- [ ] Centimeters to Parsecs
- [ ] Centimeters to Picometers
- [ ] Centimeters to Rods
- [ ] Centimeters to Smoots
- [ ] Centimeters to Thou
- [ ] Centimeters to Thou (mil)
- [ ] Centipoise to Centistokes
- [ ] Centipoise to Poise
- [ ] Centipoise to Saybolt Universal Seconds
- [ ] Centipoise to Square Meters Per Second
- [ ] Centipoise to Stokes
- [ ] Centistokes to Centipoise
- [ ] Centistokes to Pascal-seconds
- [ ] Centistokes to Poise
- [ ] Centistokes to Saybolt Universal Seconds
- [ ] Centuries to Atomic Time Units
- [ ] Centuries to Days
- [ ] Centuries to Decades
- [ ] Centuries to Fortnights
- [ ] Centuries to Hours
- [ ] Centuries to Jiffies
- [ ] Centuries to Julian Years
- [ ] Centuries to Microseconds
- [ ] Centuries to Milliseconds
- [ ] Centuries to Minutes
- [ ] Centuries to Months
- [ ] Centuries to Nanoseconds
- [ ] Centuries to Planck Time
- [ ] Centuries to Seconds
- [ ] Centuries to Shakes
- [ ] Centuries to Sidereal Days
- [ ] Centuries to Weeks
- [ ] Cfs to Liters Per Minute
- [ ] Cfs to Liters Per Second
- [ ] Chains to Angstroms
- [ ] Chains to Astronomical Units
- [ ] Chains to Cables
- [ ] Chains to Centimeters
- [ ] Chains to Cubits
- [ ] Chains to Fathoms
- [ ] Chains to Fermi
- [ ] Chains to Furlongs
- [ ] Chains to Hands
- [ ] Chains to Inches
- [ ] Chains to Kilometers
- [ ] Chains to Leagues
- [x] Centimeters to Micrometers
- [x] Centimeters to Microns
- [x] Centimeters to Miles
- [x] Centimeters to Nanometers
- [x] Centimeters to Nautical Miles
- [x] Centimeters to Parsecs
- [x] Centimeters to Picometers
- [x] Centimeters to Rods
- [x] Centimeters to Smoots
- [x] Centimeters to Thou
- [x] Centimeters to Thou (mil)
- [x] Centipoise to Centistokes
- [x] Centipoise to Poise
- [x] Centipoise to Saybolt Universal Seconds
- [x] Centipoise to Square Meters Per Second
- [x] Centipoise to Stokes
- [x] Centistokes to Centipoise
- [x] Centistokes to Pascal-seconds
- [x] Centistokes to Poise
- [x] Centistokes to Saybolt Universal Seconds
- [x] Centuries to Atomic Time Units
- [x] Centuries to Days
- [x] Centuries to Decades
- [x] Centuries to Fortnights
- [x] Centuries to Hours
- [x] Centuries to Jiffies
- [x] Centuries to Julian Years
- [x] Centuries to Microseconds
- [x] Centuries to Milliseconds
- [x] Centuries to Minutes
- [x] Centuries to Months
- [x] Centuries to Nanoseconds
- [x] Centuries to Planck Time
- [x] Centuries to Seconds
- [x] Centuries to Shakes
- [x] Centuries to Sidereal Days
- [x] Centuries to Weeks
- [x] Cfs to Liters Per Minute
- [x] Cfs to Liters Per Second
- [x] Chains to Angstroms
- [x] Chains to Astronomical Units
- [x] Chains to Cables
- [x] Chains to Centimeters
- [x] Chains to Cubits
- [x] Chains to Fathoms
- [x] Chains to Fermi
- [x] Chains to Furlongs
- [x] Chains to Hands
- [x] Chains to Inches
- [x] Chains to Kilometers
- [x] Chains to Leagues
- [x] Chains to Light Years
- [ ] Chains to Micrometers
- [ ] Chains to Microns
- [ ] Chains to Millimeters
- [ ] Chains to Nanometers
- [ ] Chains to Nautical Miles
- [ ] Chains to Parsecs
- [ ] Chains to Picometers
- [ ] Chains to Rods
- [ ] Chains to Smoots
- [ ] Chains to Thou
- [ ] Chains to Thou (mil)
- [ ] Circular Mils to Acres
- [ ] Circular Mils to Ares
- [ ] Circular Mils to Awg
- [ ] Circular Mils to Barns
- [ ] Circular Mils to Dunams
- [ ] Circular Mils to Hectares
- [ ] Circular Mils to Millimeters (diameter)
- [ ] Circular Mils to Roods
- [ ] Circular Mils to Sections
- [ ] Circular Mils to Square Centimeters
- [ ] Circular Mils to Square Feet
- [ ] Circular Mils to Square Inches
- [ ] Circular Mils to Square Kilometers
- [ ] Circular Mils to Square Meters
- [ ] Circular Mils to Square Miles
- [ ] Circular Mils to Square Millimeters (cross-section)
- [ ] Circular Mils to Square Yards
- [ ] Circular Mils to Swg
- [ ] Circular Mils to Townships
- [ ] Cloves to Amu
- [ ] Cloves to Apothecary Ounces
- [ ] Cloves to Atomic Mass Units
- [ ] Cloves to Attograms
- [ ] Cloves to Carats
- [ ] Cloves to Centigrams
- [ ] Cloves to Daltons
- [ ] Cloves to Drams
- [ ] Cloves to Earth Masses
- [ ] Cloves to Femtograms
- [ ] Cloves to Gamma (mass)
- [ ] Cloves to Grains
- [ ] Cloves to Grams
- [ ] Cloves to Hundredweight
- [ ] Cloves to Hundredweight (cwt)
- [ ] Cloves to Long Tons
- [ ] Cloves to Metric Tons
- [ ] Cloves to Micrograms
- [ ] Cloves to Milligrams
- [ ] Cloves to Momme
- [ ] Cloves to Nanograms
- [ ] Cloves to Ounces
- [x] Chains to Micrometers
- [x] Chains to Microns
- [x] Chains to Millimeters
- [x] Chains to Nanometers
- [x] Chains to Nautical Miles
- [x] Chains to Parsecs
- [x] Chains to Picometers
- [x] Chains to Rods
- [x] Chains to Smoots
- [x] Chains to Thou
- [x] Chains to Thou (mil)
- [x] Circular Mils to Acres
- [x] Circular Mils to Ares
- [x] Circular Mils to Awg
- [x] Circular Mils to Barns
- [x] Circular Mils to Dunams
- [x] Circular Mils to Hectares
- [x] Circular Mils to Millimeters (diameter)
- [x] Circular Mils to Roods
- [x] Circular Mils to Sections
- [x] Circular Mils to Square Centimeters
- [x] Circular Mils to Square Feet
- [x] Circular Mils to Square Inches
- [x] Circular Mils to Square Kilometers
- [x] Circular Mils to Square Meters
- [x] Circular Mils to Square Miles
- [x] Circular Mils to Square Millimeters (cross-section)
- [x] Circular Mils to Square Yards
- [x] Circular Mils to Swg
- [x] Circular Mils to Townships
- [x] Cloves to Amu
- [x] Cloves to Apothecary Ounces
- [x] Cloves to Atomic Mass Units
- [x] Cloves to Attograms
- [x] Cloves to Carats
- [x] Cloves to Centigrams
- [x] Cloves to Daltons
- [x] Cloves to Drams
- [x] Cloves to Earth Masses
- [x] Cloves to Femtograms
- [x] Cloves to Gamma (mass)
- [x] Cloves to Grains
- [x] Cloves to Grams
- [x] Cloves to Hundredweight
- [x] Cloves to Hundredweight (cwt)
- [x] Cloves to Long Tons
- [x] Cloves to Metric Tons
- [x] Cloves to Micrograms
- [x] Cloves to Milligrams
- [x] Cloves to Momme
- [x] Cloves to Nanograms
- [x] Cloves to Ounces
- [ ] Cloves to Pennyweights
- [ ] Cloves to Picograms
- [ ] Cloves to Planck Mass

View File

@@ -1,5 +1,5 @@
// THIS FILE IS AUTO-GENERATED BY migrate.py
export type CalcType = 'standard' | 'inverse' | '3col' | '3col-mul' | 'base' | 'text-bin' | 'bin-text' | 'dms-dd' | 'dd-dms' | 'dec-frac' | 'db-int' | 'db-spl' | 'db-v' | 'db-w' | 'awg' | 'brinell-rockwell' | 'ev-lux' | 'aov' | 'swg' | 'rockwell-vickers' | 'sus-cst' | 'molarity';
export type CalcType = 'standard' | 'inverse' | '3col' | '3col-mul' | 'base' | 'text-bin' | 'bin-text' | 'dms-dd' | 'dd-dms' | 'dec-frac' | 'db-int' | 'db-spl' | 'db-v' | 'db-w' | 'awg' | 'brinell-rockwell' | 'ev-lux' | 'aov' | 'swg' | 'rockwell-vickers' | 'sus-cst' | 'molarity' | 'cmil-dia' | 'cmil-swg';
export interface CalculatorDef {
slug: string;
@@ -2189,6 +2189,126 @@ export const calculators: CalculatorDef[] = [
{"slug": "centiliters-to-us-pints", "name": "Centiliters to Us Pints", "category": "volume", "type": "standard", "labels": {"in1": "Centiliters", "in2": "Us Pints"}, "factor": 0.021133764188651875},
{"slug": "centimeters-per-second-to-cm-per-second", "name": "Centimeters Per Second to Cm Per Second", "category": "speed", "type": "standard", "labels": {"in1": "Centimeters Per Second", "in2": "Cm Per Second"}, "factor": 1.0},
{"slug": "centimeters-per-second-to-feet-per-second", "name": "Centimeters Per Second to Feet Per Second", "category": "speed", "type": "standard", "labels": {"in1": "Centimeters Per Second", "in2": "Feet Per Second"}, "factor": 0.03280839895013123},
{"slug": "centimeters-per-second-to-furlongs-per-fortnight", "name": "Centimeters Per Second to Furlongs Per Fortnight", "category": "speed", "type": "standard", "labels": {"in1": "Centimeters Per Second", "in2": "Furlongs Per Fortnight"}, "factor": 60.128847530422334},
{"slug": "centimeters-per-second-to-inches-per-second", "name": "Centimeters Per Second to Inches Per Second", "category": "speed", "type": "standard", "labels": {"in1": "Centimeters Per Second", "in2": "Inches Per Second"}, "factor": 0.3937007874},
{"slug": "centimeters-per-second-to-km-s", "name": "Centimeters Per Second to km/s", "category": "speed", "type": "standard", "labels": {"in1": "Centimeters Per Second", "in2": "km/s"}, "factor": 1e-05},
{"slug": "centimeters-per-second-to-knots", "name": "Centimeters Per Second to Knots", "category": "speed", "type": "standard", "labels": {"in1": "Centimeters Per Second", "in2": "Knots"}, "factor": 0.019438461717893492},
{"slug": "centimeters-per-second-to-leagues-per-hour", "name": "Centimeters Per Second to Leagues Per Hour", "category": "speed", "type": "standard", "labels": {"in1": "Centimeters Per Second", "in2": "Leagues Per Hour"}, "factor": 0.0074564543068480075},
{"slug": "centimeters-per-second-to-mach", "name": "Centimeters Per Second to Mach", "category": "speed", "type": "standard", "labels": {"in1": "Centimeters Per Second", "in2": "Mach"}, "factor": 2.915451895043732e-05},
{"slug": "centimeters-per-second-to-meters-per-second", "name": "Centimeters Per Second to Meters Per Second", "category": "speed", "type": "standard", "labels": {"in1": "Centimeters Per Second", "in2": "Meters Per Second"}, "factor": 0.01},
{"slug": "centimeters-per-second-to-miles-per-hour", "name": "Centimeters Per Second to Miles Per Hour", "category": "speed", "type": "standard", "labels": {"in1": "Centimeters Per Second", "in2": "Miles Per Hour"}, "factor": 0.0223693629},
{"slug": "centimeters-per-second-to-yards-per-second", "name": "Centimeters Per Second to Yards Per Second", "category": "speed", "type": "standard", "labels": {"in1": "Centimeters Per Second", "in2": "Yards Per Second"}, "factor": 0.010936132983377078},
{"slug": "centimeters-to-angstroms", "name": "Centimeters to Angstroms", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Angstroms"}, "factor": 100000000.0},
{"slug": "centimeters-to-astronomical-units", "name": "Centimeters to Astronomical Units", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Astronomical Units"}, "factor": 6.684587122268446e-14},
{"slug": "centimeters-to-cables", "name": "Centimeters to Cables", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Cables"}, "factor": 5.399568034557236e-05},
{"slug": "centimeters-to-chains", "name": "Centimeters to Chains", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Chains"}, "factor": 0.0004970969537898671},
{"slug": "centimeters-to-fathoms", "name": "Centimeters to Fathoms", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Fathoms"}, "factor": 0.005468066491688539},
{"slug": "centimeters-to-fermi", "name": "Centimeters to Fermi", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Fermi"}, "factor": 10000000000000.0},
{"slug": "centimeters-to-furlongs", "name": "Centimeters to Furlongs", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Furlongs"}, "factor": 4.970969537898671e-05},
{"slug": "centimeters-to-leagues", "name": "Centimeters to Leagues", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Leagues"}, "factor": 2.07123730745778e-06},
{"slug": "centimeters-to-micrometers", "name": "Centimeters to Micrometers", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Micrometers"}, "factor": 10000.0},
{"slug": "centimeters-to-microns", "name": "Centimeters to Microns", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Microns"}, "factor": 10000.0},
{"slug": "centimeters-to-miles", "name": "Centimeters to Miles", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Miles"}, "factor": 6.213711922373339e-06},
{"slug": "centimeters-to-nanometers", "name": "Centimeters to Nanometers", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Nanometers"}, "factor": 10000000.0},
{"slug": "centimeters-to-nautical-miles", "name": "Centimeters to Nautical Miles", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Nautical Miles"}, "factor": 5.399568034557236e-06},
{"slug": "centimeters-to-parsecs", "name": "Centimeters to Parsecs", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Parsecs"}, "factor": 3.240779289960431e-19},
{"slug": "centimeters-to-picometers", "name": "Centimeters to Picometers", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Picometers"}, "factor": 10000000000.0},
{"slug": "centimeters-to-rods", "name": "Centimeters to Rods", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Rods"}, "factor": 0.001988387815750969},
{"slug": "centimeters-to-smoots", "name": "Centimeters to Smoots", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Smoots"}, "factor": 0.005876131155247385},
{"slug": "centimeters-to-thou", "name": "Centimeters to Thou", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Thou"}, "factor": 393.7007874015748},
{"slug": "centimeters-to-thou-mil", "name": "Centimeters to Thou (mil)", "category": "length", "type": "standard", "labels": {"in1": "Centimeters", "in2": "Thou (mil)"}, "factor": 393.7007874015748},
{"slug": "centipoise-to-centistokes", "name": "Centipoise to Centistokes", "category": "other", "type": "standard", "labels": {"in1": "Centipoise", "in2": "Centistokes"}, "factor": 1.0},
{"slug": "centipoise-to-poise", "name": "Centipoise to Poise", "category": "other", "type": "standard", "labels": {"in1": "Centipoise", "in2": "Poise"}, "factor": 0.01},
{"slug": "centipoise-to-saybolt-universal-seconds", "name": "Centipoise to Saybolt Universal Seconds", "category": "fluids", "type": "sus-cst", "labels": {"in1": "Saybolt Universal Seconds", "in2": "Centipoise"}},
{"slug": "centipoise-to-square-meters-per-second", "name": "Centipoise to Square Meters Per Second", "category": "other", "type": "standard", "labels": {"in1": "Centipoise", "in2": "Square Meters Per Second"}, "factor": 1e-06},
{"slug": "centipoise-to-stokes", "name": "Centipoise to Stokes", "category": "other", "type": "standard", "labels": {"in1": "Centipoise", "in2": "Stokes"}, "factor": 0.01},
{"slug": "centistokes-to-centipoise", "name": "Centistokes to Centipoise", "category": "other", "type": "standard", "labels": {"in1": "Centistokes", "in2": "Centipoise"}, "factor": 1.0},
{"slug": "centistokes-to-pascal-seconds", "name": "Centistokes to Pascal-seconds", "category": "pressure", "type": "standard", "labels": {"in1": "Centistokes", "in2": "Pascal-seconds"}, "factor": 0.01},
{"slug": "centistokes-to-poise", "name": "Centistokes to Poise", "category": "other", "type": "standard", "labels": {"in1": "Centistokes", "in2": "Poise"}, "factor": 0.01},
{"slug": "centistokes-to-saybolt-universal-seconds", "name": "Centistokes to Saybolt Universal Seconds", "category": "fluids", "type": "sus-cst", "labels": {"in1": "Saybolt Universal Seconds", "in2": "Centistokes"}},
{"slug": "centuries-to-atomic-time-units", "name": "Centuries to Atomic Time Units", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Atomic Time Units"}, "factor": 1.3037415494983031e+26},
{"slug": "centuries-to-days", "name": "Centuries to Days", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Days"}, "factor": 36500.0},
{"slug": "centuries-to-decades", "name": "Centuries to Decades", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Decades"}, "factor": 10.0},
{"slug": "centuries-to-fortnights", "name": "Centuries to Fortnights", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Fortnights"}, "factor": 2607.1428571428573},
{"slug": "centuries-to-hours", "name": "Centuries to Hours", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Hours"}, "factor": 876000.0},
{"slug": "centuries-to-jiffies", "name": "Centuries to Jiffies", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Jiffies"}, "factor": 315360000000.0},
{"slug": "centuries-to-julian-years", "name": "Centuries to Julian Years", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Julian Years"}, "factor": 99.9315537303217},
{"slug": "centuries-to-microseconds", "name": "Centuries to Microseconds", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Microseconds"}, "factor": 3153600000000000.0},
{"slug": "centuries-to-milliseconds", "name": "Centuries to Milliseconds", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Milliseconds"}, "factor": 3153600000000.0},
{"slug": "centuries-to-minutes", "name": "Centuries to Minutes", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Minutes"}, "factor": 52560000.0},
{"slug": "centuries-to-months", "name": "Centuries to Months", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Months"}, "factor": 1200.0},
{"slug": "centuries-to-nanoseconds", "name": "Centuries to Nanoseconds", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Nanoseconds"}, "factor": 3.1536e+18},
{"slug": "centuries-to-planck-time", "name": "Centuries to Planck Time", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Planck Time"}, "factor": 5.849481576340316e+52},
{"slug": "centuries-to-seconds", "name": "Centuries to Seconds", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Seconds"}, "factor": 3153600000.0},
{"slug": "centuries-to-shakes", "name": "Centuries to Shakes", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Shakes"}, "factor": 3.1536e+17},
{"slug": "centuries-to-sidereal-days", "name": "Centuries to Sidereal Days", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Sidereal Days"}, "factor": 36599.93370440091},
{"slug": "centuries-to-weeks", "name": "Centuries to Weeks", "category": "time", "type": "standard", "labels": {"in1": "Centuries", "in2": "Weeks"}, "factor": 5214.285714285715},
{"slug": "cfs-to-liters-per-minute", "name": "Cfs to Liters Per Minute", "category": "fluids", "type": "standard", "labels": {"in1": "Cfs", "in2": "Liters Per Minute"}, "factor": 1699.01079552},
{"slug": "cfs-to-liters-per-second", "name": "Cfs to Liters Per Second", "category": "fluids", "type": "standard", "labels": {"in1": "Cfs", "in2": "Liters Per Second"}, "factor": 28.316846592},
{"slug": "chains-to-angstroms", "name": "Chains to Angstroms", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Angstroms"}, "factor": 201168000000.0},
{"slug": "chains-to-astronomical-units", "name": "Chains to Astronomical Units", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Astronomical Units"}, "factor": 1.3447250222124986e-10},
{"slug": "chains-to-cables", "name": "Chains to Cables", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Cables"}, "factor": 0.108622030237581},
{"slug": "chains-to-centimeters", "name": "Chains to Centimeters", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Centimeters"}, "factor": 2011.68},
{"slug": "chains-to-cubits", "name": "Chains to Cubits", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Cubits"}, "factor": 44.0},
{"slug": "chains-to-fathoms", "name": "Chains to Fathoms", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Fathoms"}, "factor": 11.0},
{"slug": "chains-to-fermi", "name": "Chains to Fermi", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Fermi"}, "factor": 2.01168e+16},
{"slug": "chains-to-furlongs", "name": "Chains to Furlongs", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Furlongs"}, "factor": 0.1},
{"slug": "chains-to-hands", "name": "Chains to Hands", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Hands"}, "factor": 198.0},
{"slug": "chains-to-inches", "name": "Chains to Inches", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Inches"}, "factor": 792.0},
{"slug": "chains-to-kilometers", "name": "Chains to Kilometers", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Kilometers"}, "factor": 0.0201168},
{"slug": "chains-to-leagues", "name": "Chains to Leagues", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Leagues"}, "factor": 0.004166666666666667},
{"slug": "chains-to-micrometers", "name": "Chains to Micrometers", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Micrometers"}, "factor": 20116800.0},
{"slug": "chains-to-microns", "name": "Chains to Microns", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Microns"}, "factor": 20116800.0},
{"slug": "chains-to-millimeters", "name": "Chains to Millimeters", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Millimeters"}, "factor": 20116.8},
{"slug": "chains-to-nanometers", "name": "Chains to Nanometers", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Nanometers"}, "factor": 20116800000.0},
{"slug": "chains-to-nautical-miles", "name": "Chains to Nautical Miles", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Nautical Miles"}, "factor": 0.0108622030237581},
{"slug": "chains-to-parsecs", "name": "Chains to Parsecs", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Parsecs"}, "factor": 6.5194108820276e-16},
{"slug": "chains-to-picometers", "name": "Chains to Picometers", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Picometers"}, "factor": 20116800000000.0},
{"slug": "chains-to-rods", "name": "Chains to Rods", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Rods"}, "factor": 4.0},
{"slug": "chains-to-smoots", "name": "Chains to Smoots", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Smoots"}, "factor": 11.82089552238806},
{"slug": "chains-to-thou", "name": "Chains to Thou", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Thou"}, "factor": 792000.0},
{"slug": "chains-to-thou-mil", "name": "Chains to Thou (mil)", "category": "length", "type": "standard", "labels": {"in1": "Chains", "in2": "Thou (mil)"}, "factor": 792000.0},
{"slug": "circular-mils-to-acres", "name": "Circular Mils to Acres", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Acres"}, "factor": 1.252101449146529e-13},
{"slug": "circular-mils-to-ares", "name": "Circular Mils to Ares", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Ares"}, "factor": 5.067074790974978e-12},
{"slug": "circular-mils-to-awg", "name": "Circular Mils to Awg", "category": "electrical", "type": "awg", "labels": {"in1": "Circular Mils", "in2": "Awg"}},
{"slug": "circular-mils-to-barns", "name": "Circular Mils to Barns", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Barns"}, "factor": 5.067074790974978e+18},
{"slug": "circular-mils-to-dunams", "name": "Circular Mils to Dunams", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Dunams"}, "factor": 5.067074790974979e-13},
{"slug": "circular-mils-to-hectares", "name": "Circular Mils to Hectares", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Hectares"}, "factor": 5.067074790974978e-14},
{"slug": "circular-mils-to-millimeters-diameter", "name": "Circular Mils to Millimeters (diameter)", "category": "length", "type": "cmil-dia", "labels": {"in1": "Circular Mils", "in2": "Millimeters (diameter)"}},
{"slug": "circular-mils-to-roods", "name": "Circular Mils to Roods", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Roods"}, "factor": 5.008405796586116e-13},
{"slug": "circular-mils-to-sections", "name": "Circular Mils to Sections", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Sections"}, "factor": 1.9564085142914516e-16},
{"slug": "circular-mils-to-square-centimeters", "name": "Circular Mils to Square Centimeters", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Square Centimeters"}, "factor": 5.067074790974978e-06},
{"slug": "circular-mils-to-square-feet", "name": "Circular Mils to Square Feet", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Square Feet"}, "factor": 5.45415391248228e-09},
{"slug": "circular-mils-to-square-inches", "name": "Circular Mils to Square Inches", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Square Inches"}, "factor": 7.853981633974484e-07},
{"slug": "circular-mils-to-square-kilometers", "name": "Circular Mils to Square Kilometers", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Square Kilometers"}, "factor": 5.067074790974978e-16},
{"slug": "circular-mils-to-square-meters", "name": "Circular Mils to Square Meters", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Square Meters"}, "factor": 5.067074790974978e-10},
{"slug": "circular-mils-to-square-miles", "name": "Circular Mils to Square Miles", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Square Miles"}, "factor": 1.9563995331949722e-16},
{"slug": "circular-mils-to-square-millimeters-cross-section", "name": "Circular Mils to Square Millimeters (cross-section)", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Square Millimeters (cross-section)"}, "factor": 0.0005067074790974978},
{"slug": "circular-mils-to-square-yards", "name": "Circular Mils to Square Yards", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Square Yards"}, "factor": 6.0601710138692e-10},
{"slug": "circular-mils-to-swg", "name": "Circular Mils to Swg", "category": "electrical", "type": "cmil-swg", "labels": {"in1": "Circular Mils", "in2": "Swg"}},
{"slug": "circular-mils-to-townships", "name": "Circular Mils to Townships", "category": "area", "type": "standard", "labels": {"in1": "Circular Mils", "in2": "Townships"}, "factor": 5.434471477884176e-18},
{"slug": "cloves-to-amu", "name": "Cloves to Amu", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Amu"}, "factor": 2.185277680596786e+27},
{"slug": "cloves-to-apothecary-ounces", "name": "Cloves to Apothecary Ounces", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Apothecary Ounces"}, "factor": 116.66666666666667},
{"slug": "cloves-to-atomic-mass-units", "name": "Cloves to Atomic Mass Units", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Atomic Mass Units"}, "factor": 2.185277680596786e+27},
{"slug": "cloves-to-attograms", "name": "Cloves to Attograms", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Attograms"}, "factor": 3.6287389600000005e+21},
{"slug": "cloves-to-carats", "name": "Cloves to Carats", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Carats"}, "factor": 18143.6948},
{"slug": "cloves-to-centigrams", "name": "Cloves to Centigrams", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Centigrams"}, "factor": 362873.896},
{"slug": "cloves-to-daltons", "name": "Cloves to Daltons", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Daltons"}, "factor": 2.185277680596786e+27},
{"slug": "cloves-to-drams", "name": "Cloves to Drams", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Drams"}, "factor": 2048.0},
{"slug": "cloves-to-earth-masses", "name": "Cloves to Earth Masses", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Earth Masses"}, "factor": 6.076050634607012e-25},
{"slug": "cloves-to-femtograms", "name": "Cloves to Femtograms", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Femtograms"}, "factor": 3628738960000000.0},
{"slug": "cloves-to-gamma-mass", "name": "Cloves to Gamma (mass)", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Gamma (mass)"}, "factor": 3628738960.0},
{"slug": "cloves-to-grains", "name": "Cloves to Grains", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Grains"}, "factor": 56000.0},
{"slug": "cloves-to-grams", "name": "Cloves to Grams", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Grams"}, "factor": 3628.73896},
{"slug": "cloves-to-hundredweight", "name": "Cloves to Hundredweight", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Hundredweight"}, "factor": 0.08},
{"slug": "cloves-to-hundredweight-cwt", "name": "Cloves to Hundredweight (cwt)", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Hundredweight (cwt)"}, "factor": 0.07142857142857142},
{"slug": "cloves-to-long-tons", "name": "Cloves to Long Tons", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Long Tons"}, "factor": 0.0035714285714285718},
{"slug": "cloves-to-metric-tons", "name": "Cloves to Metric Tons", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Metric Tons"}, "factor": 0.0036287389600000003},
{"slug": "cloves-to-micrograms", "name": "Cloves to Micrograms", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Micrograms"}, "factor": 3628738960.0},
{"slug": "cloves-to-milligrams", "name": "Cloves to Milligrams", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Milligrams"}, "factor": 3628738.9600000004},
{"slug": "cloves-to-momme", "name": "Cloves to Momme", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Momme"}, "factor": 967.6637226666668},
{"slug": "cloves-to-nanograms", "name": "Cloves to Nanograms", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Nanograms"}, "factor": 3628738960000.0005},
{"slug": "cloves-to-ounces", "name": "Cloves to Ounces", "category": "weight", "type": "standard", "labels": {"in1": "Cloves", "in2": "Ounces"}, "factor": 128.0},
];

View File

@@ -448,6 +448,50 @@ export function solve(
}
break;
}
case 'cmil-dia': {
const cmilToMm = (c: number) => 0.0254 * Math.sqrt(c);
const mmToCmil = (mm: number) => Math.pow(mm / 0.0254, 2);
if (source === 1) {
out.val2 = (!isNaN(v1) && v1 >= 0) ? fmt(cmilToMm(v1)) : '';
} else {
out.val1 = (!isNaN(v2) && v2 >= 0) ? fmt(mmToCmil(v2)) : '';
}
break;
}
case 'cmil-swg': {
const swgTable: Record<number, number> = {
0: 8.23, 1: 7.62, 2: 7.01, 3: 6.4, 4: 5.89, 5: 5.38, 6: 4.88, 7: 4.47,
8: 4.06, 9: 3.66, 10: 3.25, 11: 2.95, 12: 2.64, 13: 2.34, 14: 2.03, 15: 1.83,
16: 1.63, 17: 1.42, 18: 1.22, 19: 1.02, 20: 0.91, 21: 0.81, 22: 0.71, 23: 0.61,
24: 0.56, 25: 0.51, 26: 0.46, 27: 0.42, 28: 0.38, 29: 0.35, 30: 0.32, 31: 0.29,
32: 0.27, 33: 0.25, 34: 0.23, 35: 0.21, 36: 0.19, 37: 0.17, 38: 0.15, 39: 0.14,
40: 0.12, 41: 0.11, 42: 0.1, 43: 0.09, 44: 0.08, 45: 0.07, 46: 0.064, 47: 0.058,
48: 0.051, 49: 0.045, 50: 0.04
};
const mmToSwg = (mm: number) => {
let best = -1, bestDiff = Infinity;
for (const [gStr, diam] of Object.entries(swgTable)) {
const diff = Math.abs(mm - diam);
if (diff < bestDiff) { bestDiff = diff; best = parseInt(gStr, 10); }
}
return best;
};
const swgToMm = (g: number) => swgTable[Math.round(g)];
const cmilToMm = (c: number) => 0.0254 * Math.sqrt(c);
const mmToCmil = (mm: number) => Math.pow(mm / 0.0254, 2);
if (source === 1) {
const mm = (!isNaN(v1) && v1 >= 0) ? cmilToMm(v1) : NaN;
out.val2 = isFinite(mm) ? fmt(mmToSwg(mm)) : '';
} else {
const mm = (!isNaN(v2) && v2 >= 0) ? swgToMm(v2) : NaN;
out.val1 = isFinite(mm) ? fmt(mmToCmil(mm)) : '';
}
break;
}
}
return out;