Update to RKM if ngbehavior=lt is set:

Reading C and R values follow the RKM convention with 2 exceptions:

    Upper case and lower case letters are not distinguished.

    Letters m, M denote milli (1e-3), letters Meg or meg denote 1e6.
This commit is contained in:
Holger Vogt 2021-09-27 16:42:26 +02:00
parent 6f6f2b8996
commit 7f981569d9
3 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,7 @@ C6 1 0 47p3
C7 1 0 470p
C8 1 0 4µ76 tc1=1e-6 tc2=1e-9 dtemp=6
C9 1 0 4m7
C10 1 0 470nF
.control
show c

View File

@ -8,9 +8,10 @@ R4 1 0 470R
R5 1 0 47K
R6 1 0 47K3
R7 1 0 470K
R8 1 0 4M7 tc1=1e-6 tc2=1e-9 dtemp=6
R8 1 0 4Meg7 tc1=1e-6 tc2=1e-9 dtemp=6
R9 1 0 4L7
R10 1 0 470L
R11 1 0 4M7
.control
show r

View File

@ -394,7 +394,7 @@ INPevaluateRKM_R(char** line, int* error, int gobble)
mantis *= 25.4; /* Mil */
}
else {
expo1 = expo1 + 6; /* Meg as well */
expo1 = expo1 - 3; /* m, M for milli */
hasmulti = TRUE;
}
break;