number-formatting Questions
10
Solved
I want to add commas or point every 3 digit in EditText input.
Example :
input : 1000. Output : 1.000
input : 11000. Output : 11.000
Vadose asked 8/11, 2018 at 11:34
7
Solved
I am using number_format to round floats to only 2 decimal digits. The problem is that some of my inputs don't have more than 2 decimals digits to begin with. So the code:
number_format($value, 2)...
Talesman asked 1/7, 2011 at 0:11
16
Solved
Is it possible to format numbers with CSS?
That is: decimal places, decimal separator, thousands separator, etc.
Llamas asked 30/12, 2011 at 9:1
1
Solved
Even though I have declare the type for the iterator i as NumericalString, TypeScript still throws this error:
Argument of type 'string' is not assignable to parameter of type 'type'.deno-ts(2345)...
Niels asked 28/7, 2023 at 7:10
6
Solved
I'm using Intl.NumberFormat to format numbers:
const formatter = new Intl.NumberFormat('en-US', {
minimumFractionDigits: 1,
maximumFractionDigits: 4,
minimumSignificantDigits: 1,
maximumSignifi...
Micropyle asked 13/10, 2020 at 7:31
4
Solved
I have a table which their values are NUMERIC(16,4)
Example:
12.4568
13.2
14.05
I want to display the value with only 2 digits after dot without rounding.
Expected result is:
12.45
13.2
14.05
Wha...
Brasca asked 23/2, 2016 at 9:30
1
Solved
Basically, I'm trying to concatenate a specific text (in bold format), the date and time informed in another worksheet into a specific cell.
This code below help me to do that:
Sub Atualizar_Abertu...
Nianiabi asked 15/6, 2023 at 17:54
13
How do you write a number with two decimal places for sql server?
Pilar asked 14/1, 2009 at 1:36
3
Solved
I want to use qDebug(), qInfo() and so on with a custom default floating point precision and number format.
Is there a way to define this globally?
Imagine this:
double num = 1.2;
qDebug() <...
Ukulele asked 25/8, 2016 at 13:21
7
Solved
When creating a column of type NUMBER in Oracle, you have the option of not specifying a precision or scale. What do these default do if you don't specify them?
Aerometry asked 27/2, 2009 at 1:22
3
Solved
I've copied some data from a website into a sheet that displays dollar values in millions or billions, eg $239 M, $1.23 B, etc.
How can I convert these to numeric values?
[edit] Found an Excel exam...
Misguidance asked 18/7, 2021 at 17:3
3
Solved
How can I determine the symbol for the decimal separator? The device's current locale should be used.
Demerit asked 21/6, 2019 at 4:25
3
Solved
I'm trying to increment a number inside an element on page. But I need the number to include a comma for the thousandth place value. (e.g. 45,000 not 45000)
<script>
// Animate the element's...
Ung asked 26/4, 2013 at 2:36
7
Solved
Here's the relevant code. I've confirmed with the alert that the correct number is saved, it's just not being changed to 2 decimal places.
if ($(this).attr('name') == 'time') {
var value = $(thi...
Elephus asked 8/2, 2011 at 19:13
15
Solved
How can I format numbers using a comma separator every three digits using jQuery?
For example:
╔═══════════╦═════════════╗
║ Input ║ Output ║
╠═══════════╬═════════════╣
║ 298 ║ 298 ║
║ 2984 ║ 2,...
Mice asked 2/1, 2010 at 3:26
2
Solved
I want EditText to allow only characters 0123456789., where both comma and dot shall be changed to some character specified by mCurrencyFormatter.getDecimalSeparator(). The second part is achieved ...
Outhouse asked 24/1, 2014 at 10:54
1
I must write a stringToNumber parsing function that can use custom strings for the following:
decimal separator (. for en-US => 3.1415)
thousands separator (, for en-US => 1,000,000)
positive sig...
Lentissimo asked 3/10, 2017 at 7:6
14
Solved
I want to write a method that will take an integer and return a std::string of that integer formatted with commas.
Example declaration:
std::string FormatWithCommas(long value);
Example usage:
std...
Seashore asked 1/9, 2011 at 21:33
5
Solved
I have the following query:
SELECT
CONVERT(DECIMAL(11,1),SUM(Column/1000*-1)) AS NAME,
FROM
Table
The reason i have "/1000*-1" is that I would like the results to be displayed in units of t...
Barm asked 29/5, 2012 at 8:57
7
Solved
I need to design a function to return negative numbers unchanged but should add a + sign at the start of the number if its already no present.
Example:
Input Output
----------------
+1 +1
1 +1
-1 -...
Bothersome asked 21/4, 2010 at 11:22
7
Solved
I have an EditText in which the user should input a number including decimals and i want a thousand separator automatically added onto the input number I tried a couple of other methods but some do...
Hoicks asked 22/9, 2012 at 8:37
11
Solved
What is the best way to format the following number that is given to me as a String?
String number = "1000500000.574" //assume my value will always be a String
I want this to be a String with th...
Brought asked 8/9, 2010 at 23:38
7
Solved
I'd like to always show a number under 100 with 2 digits (example: 03, 05, 15...)
How can I append the 0 without using a conditional to check if it's under 10?
I need to append the result to anot...
Prothallus asked 14/9, 2012 at 9:13
8
Solved
I have a series of CSV files where numbers are formatted in the european style using commas instead of decimal points, i.e. 0,5 instead of 0.5.
There are too many of these files to edit them befor...
Peptide asked 25/5, 2011 at 10:58
10
I am trying to round large digits. For instance, if I have this number:
12,645,982
I want to round this number and display it as:
13 mil
Or, if I have this number:
1,345
I want to round it an...
Surat asked 15/10, 2012 at 16:53
© 2022 - 2025 — McMap. All rights reserved.