mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-01 20:31:01 +00:00
If the precision is lower than even the number after rounding, print 0.0
This commit is contained in:
@@ -533,6 +533,12 @@ void PrintFloat(double argd, FormatterParams &formatter, bool e, bool f, bool g,
|
||||
expon++;
|
||||
}
|
||||
}
|
||||
else if(removedigs > ndigits)
|
||||
{
|
||||
ndigits = 1;
|
||||
digits[0] = '0';
|
||||
expon = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
// remove the specified number of digits
|
||||
|
||||
Reference in New Issue
Block a user