Questions tagged as 'porcentagem'

1
answer

Show profit or loss in negative percentage

Considering the following data: $despesas = 2000; $receitas = 100; $lucroprejuizo = ($receitas - $despesas) / $receitas)*100; I have a result of: -1900% But if any of the variable revenue or expenditure is zero the calculation is wrong b...
asked by 07.03.2016 / 00:40
3
answers

How to calculate the CPU percentage?

When you open the system monitor , and windows , when you open the linux / em>, we have a percentage of CPU. How do you get to this code? How to get to this calculation using linux calls?     
asked by 09.06.2015 / 21:05
1
answer

Query Count SQL with percentage in PHP

I am making a report and need to count and display the number plus the percentage for the total count. With this code I already count. Is it possible to display the percentage next to it using sql and php? $sql = "SELECT customer.country,...
asked by 07.05.2015 / 03:55
0
answers

Get the percentage between 2 in a Dynamic SQL query

Good afternoon I'm trying to get the % between months compared to the year after, so in month 1/2016 value was 2115.00 month 01/2017 value was 3511.00 take the percentage between these 2 and make the margin / percentage the...
asked by 29.08.2018 / 17:26
0
answers

Percentage calculated through different levels

Hello! I recently started some developments in Power BI and I have the following doubt: I have a test table composed as follows: AfterimportingthebasetoPowerBIIcreatedanewcolumninsidethetoolthatcalculatesthepercentageofVALOR1overVALOR_TOT...
asked by 18.04.2018 / 14:41
1
answer

Percentage of winning in PHP

Hello, I'm creating a system of items on my site. Each item has a certain chance of winning. For example, 0.01% I would like to know how to do for PHP every time the user plays, try to earn some item with that percentage. Type like th...
asked by 17.06.2018 / 20:23
2
answers

How to add percentage to a value in PHP? [duplicate]

I'm trying to add a percentage of the value to it, but I could not do it. <?php $data = json_decode(file_get_contents("https://broker.negociecoins.com.br/api/v3/btcbrl/ticker")); echo "<pre>"; print_r($data->sell); e...
asked by 27.09.2018 / 15:32
1
answer

Completion Percentage [closed]

Can you tell me if it's possible to do this image in OptimizeMember (Member Area Plugin)? Or do you know any plugins for WordPress that do? Thankful link     
asked by 20.08.2015 / 19:22