Added Tests to check code is correct

Signed-off-by: John Jones-Steele <jjjoness@amazon.com>
This commit is contained in:
John Jones-Steele
2021-07-26 16:10:21 +01:00
parent 57fa1109c6
commit 73706fa04e
2 changed files with 44 additions and 1 deletions
@@ -43,7 +43,7 @@ namespace AzQtComponents
{
const QChar decimalPoint = locale.decimalPoint();
const QChar zeroDigit = locale.zeroDigit();
const int numToStringDecimals = numDecimals < 8 ? 8 : numDecimals;
const int numToStringDecimals = AZStd::max(numDecimals, 20);
// We want to truncate, not round. toString will round, so we add extra decimal places to the formatting
// so we can remove the last values