Questions tagged as 'porcentagem'

6
answers

How 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 given value. How do I get this percentage out of a value? For example: $total = 4000; $pctm = 30.00; $valor_descont...
asked by 21.09.2015 / 21:51
1
answer

MYSQL calculate the percentage chosen

I'm doing a QUIZ and at some point I have to show the percentage of the alternatives chosen by the users. I have this table: ID RESPOSTA 1 a 2 a 3 b 4 b 5 c 6 a The answer I need to have from MYSQL would be the percentages of choice:...
asked by 15.08.2016 / 16:41
3
answers

Field Percentage in HTML

Good morning! I am developing a restful application, using angular 4, components of PrimeNg (version 5), HTML 5 and CSS 3 in the front part. I came across a problem that apparently can be considered simple but I do not find anything that helps m...
asked by 24.04.2018 / 13:02
1
answer

Change 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 above that image, the same size of that image, and I apply a transition on top of this box to reveal it when I position the mouse over it, and a link...
asked by 13.02.2015 / 19:17
2
answers

How to use% in Portugol [closed]

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 % discount of the INSS. At the end, print the worker's net salary.    ...
asked by 31.05.2017 / 06:38
1
answer

Percentage in result

I am making a menu in Python and I need the result of an account to appear in percentage .... The Tmar has value 2 and Tcliclo has a value of 7 being the result: 0.29, it by 29%. Could someone help me? Thank you def Calc3 (self,e...
asked by 15.06.2017 / 05:31
2
answers

When to use In or%?

I'm studying responsive layout and I already know that to create a flexible part you need to use relative measure like In and%. But I still can not understand what the real difference between one and another ... ... and if it is possible to a...
asked by 01.12.2014 / 18:41
3
answers

Calculation of percentage of growth

I have three columns that would be month , revenue and expenses . For example: Mês | Receita | Despesas Janeiro | 2500 | 1000 Fevereiro | 1000 | 500 I would like to demonstrate the percentage growth using PHP and MySQL....
asked by 04.04.2014 / 00:43
1
answer

Problems converting px to Percentage

I have this code: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <div style="width:50%;height:30%;background:#65C6BB;positio...
asked by 15.03.2016 / 15:18
1
answer

The percentage returns me zero in C #

When the results are printed, the percentage of men and women interviewed and people with incomes up to 500 reads equals zero. 'string nome; char sexo, estado_civil; int idade, cont = 0, cont_m = 0, cont_f = 0, cont_med...
asked by 27.06.2017 / 00:24