Questions tagged as 'arredondamento'

1
answer

How to limit decimal places?

printf("%.3f", &resp); I'm using the following line, however, when comparing with a number, it requires that it has the same decimal place as the originals, for example: 2.963258741 != 2.963 Can you limit the houses for this compari...
asked by 01.12.2017 / 05:21
0
answers

Rounding decimal following standard ABNT 5891 [closed]

Good morning! I have to implement a rounding rule in JavaScript following the ABNT NBR 5891: 2014 rule. . I tried to use only the existing functions like Math.round, Math.trunc, Math.floor, Math.ceil, but none gave 100%, the closest was Mat...
asked by 29.11.2018 / 13:08
1
answer

Roundup of 5 in 5 cents

In a PHP system I'm developing, I need to update a column of the price table. The price field is in float format and the administrator informs the percentage of increase. Example: Reports that it will have a 10% increase. $valor_anti...
asked by 27.02.2016 / 16:17
0
answers

C # - 5 significant numbers with at least 2 decimal places

Well, someone knows a way that I can transform a number with at least 5 significant digits and added to this factor, should have at least 2 decimal places. Example: -0,00012 >> -0,00012000 12345687,00 >> 12345687,00 123,00 >&...
asked by 27.09.2017 / 22:49
1
answer

Lease numbers financially

I'm building a basic payroll system in VB.NET, and for example, when I split 2500 to 220 the result will be 11,363636363636363636363636363636 . How can I do a rounding, for example, to get results with% of two houses after...
asked by 15.11.2017 / 23:21
0
answers

Values with 3 decimal places inserting erroneously [duplicate]

I have a textbox in which I inform a value of an item that should be divided to 10 people registered in the system, but divided by ratio, who has more item receives more of the new value informed, who has less will receive less. The system...
asked by 19.04.2018 / 14:00