mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 22:00:28 +01:00
[apps] Display float in decimal mode in curve views and title
Change-Id: I3c069f3e001b43c98d4c54975b02636dad330acf
This commit is contained in:
@@ -106,8 +106,8 @@ void ParametersController::updateTitle() {
|
||||
m_titleBuffer[currentChar++] = m_law->parameterNameAtIndex(index)[0];
|
||||
strlcpy(m_titleBuffer+currentChar, " = ", 4);
|
||||
currentChar += 3;
|
||||
char buffer[Constant::FloatBufferSizeInScientificMode];
|
||||
Float(m_law->parameterValueAtIndex(index)).convertFloatToText(buffer, Constant::FloatBufferSizeInScientificMode, Constant::NumberOfDigitsInMantissaInScientificMode);
|
||||
char buffer[Constant::FloatBufferSizeInDecimalMode];
|
||||
Float(m_law->parameterValueAtIndex(index)).convertFloatToText(buffer, Constant::FloatBufferSizeInDecimalMode, Constant::NumberOfDigitsInMantissaInDecimalMode, Float::DisplayMode::Decimal);
|
||||
strlcpy(m_titleBuffer+currentChar, buffer, strlen(buffer)+1);
|
||||
currentChar += strlen(buffer);
|
||||
m_titleBuffer[currentChar++] = ' ';
|
||||
|
||||
Reference in New Issue
Block a user