Page 1 of 1
Question about rounding values

Posted:
Mon Nov 16, 2015 7:04 pm
by kultakala
Hi all,
Just got started with GOverlay and i like it very much but have a question.
I saw some screenshots showing values like "Memory Used: 1,9 GB" or "CPU Usage: 96%". The screenshots did not use the CPU Info Box but was own text with the value behind.
If i try to make a bar graph for the memory usage it works but if i put the value behind it it says for example "19.6253". If i limit the max digits it shows "9999".
I just want to get the value of 19% for example, is that possible ?
Regards,
kultakala
Re: Question about rounding values

Posted:
Mon Nov 16, 2015 7:46 pm
by TheLaGmAn
It should work if i understood correctly.
Which element has the issue? the bar graph?
What sensor are you using exactly?
Re: Question about rounding values

Posted:
Tue Nov 17, 2015 9:40 pm
by kultakala
Issue is not with the graph but with the counter beside.

I used the sensor marked red on the right side.
This is what the display looks like:

I would like to show it just 14% at RAM for example...
Re: Question about rounding values

Posted:
Wed Nov 18, 2015 2:27 am
by TheLaGmAn
what happens when you set "max digits" to 1 ?
Re: Question about rounding values

Posted:
Wed Nov 18, 2015 6:14 pm
by kultakala
If max digits is set to 1 it shows constantly a "9".
Set to 3 or 7 it shows 3 times a 9 or 7 times.
Set to 0 or to 8 (or higher) it shows the value with decimals as on the photo.
Re: Question about rounding values

Posted:
Fri Nov 20, 2015 10:15 am
by Goatee

I have it set to max digits 2, that gives a value between 99 and 0.0, then using the fill with zero options give a value of between 99 and 00.
% is added as a graphic.
Re: Question about rounding values

Posted:
Fri Nov 20, 2015 10:39 am
by kultakala
Thanks, i thought i tested all combinations but i am not shure.
I will try that out.
Re: Question about rounding values

Posted:
Fri Nov 20, 2015 4:56 pm
by kultakala
Its not working for me...
If i set the memory to 2 digits with zero fill yes it shows 99 all the time.
I assume that your hardware sensor delivers only values without decimal places and mine gives 4.
Did you use Sensors under "OpenHardwareMonitor DLL" or something else ?
Re: Question about rounding values

Posted:
Fri Nov 20, 2015 5:14 pm
by kultakala
Okay, i found the problem...
Everything is working as long as "Regular Font" is used.
Try to switch to "Numbers Font 4" like i did and it does not work anymore.
I would prefer to have the smaller numbers... maybe this could be managed in a future version ?