Questions tagged as 'number-format'

1
answer

C # excel column format

I'm trying to format an excel column for the currency format. excelWorksheet.Range["S1", "S" + linhas].NumberFormat = "R$ #.###,00" However, this causes you to format "RR $ 3500.00". In the cell is 3500 and I would like it to be:...
asked by 17.07.2017 / 15:26
1
answer

Rounding Numbers on Android

I am trying to format numbering to only two decimal places after the comma, I am using the following code line NumberFormat formato = new DecimalFormat("0.00"); But the minimum API of my application is 15 and it's asking 24 to use t...
asked by 05.02.2017 / 03:18
1
answer

How do I format the actual values in my Android application?

I want the editText values to appear in real .. how do I format within my current code conditions? import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.vi...
asked by 28.12.2015 / 22:46
0
answers

Return of non-numeric number NaN in PHP

I'm having trouble displaying the data of a Budget already imputed to the database. When you access the drilldown you are displaying the R$ NaN in the currency fields. Some functions code: orcamento.js function sumTotal() {...
asked by 25.09.2018 / 20:07
0
answers

Add a zero when there is only 1 decimal

Well folks, I have a system for issuing electronic invoices, there is a government rule where the values of the duplicates (parcels) must have exact 2 decimal places. I use the number_format to declare it to show only two decimal places, but whe...
asked by 02.08.2018 / 15:53
2
answers

Format the currency of this budget for real

I need to change the currency from this budget to actual currency. I tried to use this, but it did not work: function numberToReal(numero) { var numero = numero.toFixed(2).split('.'); numero[0] = "R$ " + numero[0].split(/(?=(?:...)*$)/).j...
asked by 05.05.2018 / 20:43
0
answers

Number Format PHP

I need to format the number 1000 MIL to 100,0 or 100.0 with a decimal place in PHP in>. I have tried number_format but it returns 1000,00 or 1,000,00 .     
asked by 20.03.2018 / 18:50
0
answers

Include semicolon to a variable [duplicate]

Hello, I have a small problem, I have a number coming from a sum and I need to assign a mask to that number. I did some tests until it worked though the mask was not correct to the number. var format = function (format, text) { var arr...
asked by 21.08.2017 / 19:28
0
answers

Format an input number

I have a system that calculates the average of the fields and then executes the javascript below, only the result goes out 0.222048 and the correct one would be 222.048, how to do this conversion? <script> function calcularMediam3et...
asked by 02.06.2016 / 19:04
0
answers

Fill double zero to the left in java

I would like to know how do I format a double with two boxes to the left of the dot and two to the right of the dot. Example: I have double 1.1 I want it to be formatted for 01.10; entry: 10.1 / 1.05 Output: 10.01 / 01.05     
asked by 29.04.2016 / 21:17