parseunit(), support 'T' for "Tera"

in response to a bug report by Andy Fierman
  "#273 T = Tera = 1e12 suffix is ignored when used in a parameter in a subcircuit."
  http://sourceforge.net/p/ngspice/bugs/273/
This commit is contained in:
rlar 2014-01-09 18:36:42 +01:00
parent d5b2460123
commit f2093b17e8
1 changed files with 1 additions and 0 deletions

View File

@ -735,6 +735,7 @@ parseunit(const char *s)
{
switch (toupper(s[0]))
{
case 'T': return 1e12;
case 'G': return 1e9;
case 'K': return 1e3;
case 'M': return ci_prefix("MEG", s) ? 1e6 : 1e-3;