Most voted "percentage" questions
The percentage or percentage (from Latin per Centum, meaning "percent", "every hundred") is a ratio measure based on 100 (one hundred).
Learn more…39 questions
Sort by count of
-
6
votes6
answers22962
viewsHow to calculate percentage?
I have a variable that dynamically receives from the database, a floating number that is the percentage to be taken out of a certain value. How do I take this percentage away from a value? For…
-
3
votes3
answers2423
viewsCalculation of growth percentage
I have three columns that would be month, recipe and expenses. For example: Mês | Receita | Despesas Janeiro | 2500 | 1000 Fevereiro | 1000 | 500 I would like to demonstrate the percentage of growth…
-
3
votes2
answers394
viewsChange image size and box with %, not working
I have a layout, where I have a div with an image, and a class with a box over that image, the same size as that image, and I apply a transition on top of this box to reveal it when positioning the…
-
3
votes1
answer6721
viewsMYSQL calculate the chosen percentage
I’m doing a QUIZ and at a certain point I have to show the percentage of alternatives chosen by users. I have this table: ID RESPOSTA 1 a 2 a 3 b 4 b 5 c 6 a The answer I need from MYSQL would be…
-
3
votes3
answers4043
viewsField Percentage in HTML
good morning! I am developing a restful application, using angular 4, components of Primeng (version 5), HTML 5 and CSS 3 on the front. I came across a problem that apparently can be considered…
-
2
votes2
answers193
viewsWhen to use Em or %?
I’m studying responsive layout and already know that to create a flexible part it is necessary to use relative measure like Em and %. But I still can’t understand what the real difference between…
-
2
votes2
answers11063
viewsHow to use % in Portugol
I have the following question: Write an algorithm that calculates a worker’s salary. The user will be asked for the value of the hour worked, number of hours and the % INSS discount. At the end,…
-
2
votes1
answer574
viewsPercentage in the result
I am making a menu in Python and I need the result of an account to appear in percentage.... O Tmar has value 2 and Tcliclo has value 7 being the result: 0.29 however I can’t place it at 29%. Could…
-
2
votes1
answer401
viewsProblems converting px to Percentage
I have this code : <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <div…
-
2
votes1
answer2214
viewsPercentage in C
Given the following statement: Write an algorithm to show on the screen if each N number, typed user is even or odd. The algorithm should also show on the screen the sum of all even numbers, the sum…
-
1
votes1
answer2356
viewsThe percentage returns me zero in c#
When the results are printed, the percentage of men and women interviewed and people with income up to 500 kingdoms equals zero. `string nome; char sexo, estado_civil; int idade, cont = 0, cont_m =…
-
1
votes0
answers76
viewsCalculate average growth percentage with PHP
I got the following json: { "bpi": { "2017-10-31": 21094.2212, "2017-11-01": 22052.8615, "2017-11-02": 22972.5023, "2017-11-03": 23730.9012, "2017-11-04": 24483.4171, "2017-11-05": 24448.8979,…
-
1
votes1
answer279
viewsWebclient C# finishing download before starting to download
I have a question, I am using Webclient in C#language, I have the following problem: I click on Download a file, and it does not start downloading, it says that downloading is already finished...…
-
1
votes1
answer243
viewsCalculation of jQuery chained percentage
Good I have the challenge of calculating the final value of the product on the same page without refresh, with 4 discount fields on a gross value showing the unit and total result (items of a…
-
1
votes1
answer62
viewsComparing similarity in two arrays!
Good night guys, I’m in trouble, come on, maybe somebody can help me. $array1 = array(); $array2 = array(); foreach ($paper as $p) { $array1[] = $p->title; $array2[] = $p->title; } $nbarray1 =…
-
1
votes1
answer3574
viewsCalculate percentage
Largura * Complemento = Subtotal + Porcentagem = Total subtotal.Text = (Convert.ToDouble(largura.Text) * Convert.ToDouble(complemento.Text)).ToString(); total.Text = (Convert.ToDouble(subtotal.Text)…
-
1
votes1
answer161
viewsColumn splitting error with SQL Subquery
I am using postgresql I have a query that when I run a division between the columns (soma_neighborhood / Soma_city) it always returns 1, should return the value described in the field and not the…
-
1
votes1
answer186
viewsSum PL SQL Lines
Galerinha, I created a code that organizes all the tasks of the company by sector. The objective of this code is to identify the percentage of delayed activities by sector. The result was expected.…
-
1
votes0
answers31
viewsPercentage in Procedure SQL
Good morning, you guys, I need to create a rule within a precedent, where I first need to get 100% of the ids marked with AP. And then of these 100%, I need to get 15% of the status ids = 10. But I…
-
0
votes1
answer435
viewsCount SQL query with PHP percentage
I’m making a report and I need to count and display the number plus the percentage for the total count. With this code I already count. It is possible to display the percentage beside using sql and…
-
0
votes4
answers1578
viewsHow to calculate the CPU percentage?
In the linux, when the system monitor, and in the windows, when the task manager, we have a percentage of CPU. How do we get to this code? How do we get to this calculation using the linux?…
-
0
votes1
answer1992
viewsShow 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 revenues or…
-
0
votes1
answer76
viewsProcessor decimal percentage problem - JAVA
Okay, guys, here’s the thing, I developed a code to pick up the percentage used by my processor core application: private String getCPULoad() { OperatingSystemMXBean osBean = (OperatingSystemMXBean)…
-
0
votes1
answer1683
viewsCalculate percentage between 2 numbers
I have to do a percentage system where I have 2 dates in TIMEUNIX, being the final date ($cota->ultimo_recebimento) and the current day I catch up with the function time() from PHP. I tried to do…
-
0
votes1
answer40
viewsdoubts with percentages logic
Hi, I have a question about a percentage problem... Ana earns R $ 5.000,00 and Julio earns R $ 9.0000,00. They have in common a debt of R $ 6.000,00 and want to pay this amount in proportion to the…
-
0
votes1
answer570
viewsHow to format a number in percentage within Javascript?
Gentlemen, I am developing a billing monitoring panel. I want to turn this number 56% directly into my Javascript code. Follow an excerpt of my code, it is directly fed by a query of my SQL. This is…
-
0
votes1
answer276
viewsRuby on Rails: Percentage of Total does not work
People need to calculate how many% of the Survivors (endpoint) were abducted and how many were not, but I have no idea how to do but it did not work, I do not know if I declared wrong also in…
-
0
votes1
answer55
viewsProblem with jquery percentage calculation
Good afternoon , I’m having trouble calculating percentage, but the error does not occur in the mile up, anyone has any idea what may be? var cost_value = $('#cost_value').val().replace('.',…
-
0
votes0
answers164
viewsCreate a column that shows SQL percentage
I have a query that searches 2 values and when divided should return the percentage, but this with integer number. I believe I’m wrong here : (COUNT(distinct neighborhood) / COUNT(distinct…
-
0
votes0
answers39
viewsTurning y-axis into percentage
I wrote the following code that generates the following graph with the absolute values on the y-axis. I would like to know how to transform the y-axis to percentage to decrease the effect of the…
-
0
votes0
answers49
viewsAlgorithm of Portugol SE
I have a small question about portugol. The question asks these details: Above R $ 400,00 30% of the average balance R$ 400,00 (inclusive) up to R$ 300,00 25 % of the average balance R$ 300,00…
-
-1
votes1
answer153
viewsWinning percentage in PHP
Hello, I am creating a system of items on my website. Each item has a certain chance to win. For example, 0.01% I would like to know how to make PHP every time the user plays, try to win some item…
-
-1
votes1
answer1716
viewsCalculation of percentage javascript
I am developing a project and need to calculate the percentage of spread (profit on sale) example: (1 Eth): 107.178552387 which in case is $107.18 with a 5% spread (ie 5% profit on top of the total…
-
-1
votes1
answer45
viewsCalculate the chargeback in percentage of the final value C#
Good evening, the question is more about calculation than programming. The problem is this: if I sell something I must add 15% service charge. var total = 100; var acrescimoPercent = 15.00; var…
-
-2
votes1
answer105
viewsPercentage of Completion
Can you tell me if it is possible to do the same image in Optimizemember (Plugin for member area) ? Or know any Wordpress plugin that does ?? Grateful http://prntscr.com/86wng3…
-
-2
votes2
answers665
viewsHow to add percentage to a PHP value?
I’m trying to add a percentage of the value to itself, but I couldn’t do. <?php $data = json_decode(file_get_contents("https://broker.negociecoins.com.br/api/v3/btcbrl/ticker")); echo…
-
-2
votes0
answers10
viewsREACT PERCENTAGE CALCULATION
Good afternoon, I’m new here. I’m racking my brain to find out how I’m going to be able to do a percentage calculation on the calculator I’m creating, I can’t make it happen. The other operations…
-
-3
votes1
answer159
viewsHow to perform sales commission calculation
To summarize well what I want, I will do so so that the program should run: Digite o nome do vendedor: Joao Digite a meta do vendedor: 1000 Digite o valor de vendas: 499 After this I need to make…
-
-4
votes2
answers454
viewsPercentage with if in Python
Hello, I’m a beginner in Python and I came across a great question in a lesson I’m doing. I’m doing a program that takes user information such as: name, date of birth, position and salary. After…