this worked .subckt psub a b p2 = {p1*2-1} p1 = 1 but this failed .subckt psub a b p2 = { p1 * 2 - 1 } p1 = 1 thanks to Ivan Riis Nielsen for the report in Message [Ngspice-devel] parsing problem (ngspice-24 tarball)