simplify float division to modulo operator
This commit is contained in:
parent
d9069ea2cc
commit
c77486f88d
|
@ -184,9 +184,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
lvi[3] = $"{total}";
|
lvi[3] = $"{total}";
|
||||||
if (tsbViewStyle.SelectedIndex == 2)
|
if (tsbViewStyle.SelectedIndex == 2)
|
||||||
{
|
{
|
||||||
int n = (int) (dataA.Length / 1024.0f);
|
lvi[4] = $"of {(dataA.Length % 1024 == 0 ? "" : "~")}{dataA.Length / 1024} KBytes";
|
||||||
float ncheck = dataA.Length / 1024.0f;
|
|
||||||
lvi[4] = $"of {(n == ncheck ? "" : "~")}{n} KBytes";
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
lvi[4] = $"of {dataA.Length} Bytes";
|
lvi[4] = $"of {dataA.Length} Bytes";
|
||||||
|
|
Loading…
Reference in New Issue