Split up Double2Str to a format function to make its use case clear

This commit is contained in:
Marek Roszko
2022-09-17 00:10:22 -04:00
parent 59a9ddac20
commit ece23d434b
15 changed files with 140 additions and 107 deletions
+2 -2
View File
@@ -110,8 +110,8 @@ void NUMERIC_EVALUATOR::parseSetResult( double val )
// Can be printed as a floating point
// Warning: DO NOT use a format like %f or %g, because they can create issues.
// especially %g can generate an exponent, incompatible with UNIT_BINDER
// Use the optimized Double2Str
snprintf( m_token.token, m_token.OutLen, "%s", Double2Str( val ).c_str() );
// Use the optimized UIDouble2Str
snprintf( m_token.token, m_token.OutLen, "%s", UIDouble2Str( val ).c_str() );
}
}