circuitjs1 icon indicating copy to clipboard operation
circuitjs1 copied to clipboard

Floating-point value in diode model ignored (when contains exponent?)

Open geometrian opened this issue 7 months ago • 1 comments

I have a diode with parameters: • IS  = 4.416 409 060 438 224e-8 [A] • RS = 0.117 918 182 847 822 07 [Ω] • n   = 6.446 193 498 698 821

However, when I enter these values into the advanced diode model, IS doesn't 'take'. It silently remains at what it was before! I assume this is because it fails to parse the "e-8" in string "4.416409060438224e-8".

The user notices that the model updated (as the other two parameters changed), but would have to go back into editing the model again to discover that it had only partially updated! The certainty of an error coupled with the unlikelihood of it being discovered makes this fairly serious in my view.

geometrian avatar May 16 '25 16:05 geometrian

Yes, it can't parse the scientific notation. It should complain at least rather than silently ignoring it.

pfalstad avatar May 16 '25 19:05 pfalstad