Question about rounding values

Anything about GOverlay and the devices supported

Question about rounding values

Postby kultakala » Mon Nov 16, 2015 7:04 pm

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

kultakala
 
Posts: 14
Joined: Mon Nov 16, 2015 6:55 pm

Re: Question about rounding values

Postby TheLaGmAn » Mon Nov 16, 2015 7:46 pm

It should work if i understood correctly.

Which element has the issue? the bar graph?
What sensor are you using exactly?
User avatar
TheLaGmAn
Site Admin
 
Posts: 1028
Joined: Wed Feb 26, 2014 8:32 pm

Re: Question about rounding values

Postby kultakala » Tue Nov 17, 2015 9:40 pm

Issue is not with the graph but with the counter beside.

Screenshot 1.jpg


I used the sensor marked red on the right side.

This is what the display looks like:

Display 1.jpg


I would like to show it just 14% at RAM for example...

kultakala
 
Posts: 14
Joined: Mon Nov 16, 2015 6:55 pm

Re: Question about rounding values

Postby TheLaGmAn » Wed Nov 18, 2015 2:27 am

what happens when you set "max digits" to 1 ?
User avatar
TheLaGmAn
Site Admin
 
Posts: 1028
Joined: Wed Feb 26, 2014 8:32 pm

Re: Question about rounding values

Postby kultakala » Wed Nov 18, 2015 6:14 pm

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.

kultakala
 
Posts: 14
Joined: Mon Nov 16, 2015 6:55 pm

Re: Question about rounding values

Postby Goatee » Fri Nov 20, 2015 10:15 am

Image

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.

Goatee
 
Posts: 5
Joined: Tue Mar 10, 2015 8:59 pm

Re: Question about rounding values

Postby kultakala » Fri Nov 20, 2015 10:39 am

Thanks, i thought i tested all combinations but i am not shure.
I will try that out.

kultakala
 
Posts: 14
Joined: Mon Nov 16, 2015 6:55 pm

Re: Question about rounding values

Postby kultakala » Fri Nov 20, 2015 4:56 pm

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 ?

kultakala
 
Posts: 14
Joined: Mon Nov 16, 2015 6:55 pm

Re: Question about rounding values

Postby kultakala » Fri Nov 20, 2015 5:14 pm

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 ?

kultakala
 
Posts: 14
Joined: Mon Nov 16, 2015 6:55 pm


Return to About GOverlay



Who is online

Users browsing this forum: Baidu [Spider] and 39 guests