Simulation bug fixes.

1) Use C-locale when converting output of parsers to strings.

2) InferSimModel() must run on local copy of fields, not the fields in
the symbol (which might be different if they've already been edited in
the Symbol Properties Dialog, for instance).

3) InferSimModel() should accept a deviceType already set to RLC.

4) Don't output trailing decimal separators if there's no fraction.
This commit is contained in:
Jeff Young
2022-12-19 18:14:13 +00:00
parent f601c87cea
commit 58ce0bb804
6 changed files with 48 additions and 54 deletions
+2
View File
@@ -509,6 +509,8 @@ bool SIM_VALUE_FLOAT::FromString( const std::string& aString, NOTATION aNotation
try
{
LOCALE_IO toggle;
m_value = std::stod( parseResult.significand ) * std::pow( 10, exponent );
}
catch( const std::invalid_argument& )