Most voted "formatting" questions
Tag used to refer to content formatting in general (field format (date, time, etc), file format, etc).
Learn more…175 questions
Sort by count of
-
0
votes2
answers102
viewsFormat a double of a variable with two houses
I have a number in Double coming from an object (think) and will be displayed in a table abstractTable. I would like it to be displayed with only two houses after the point. My code below: public…
-
0
votes1
answer232
viewsHow to limit decimal places in C#
I made an application to calculate the arithmetic average of 3 notes. My form has 3 Textbox that receives the note and a button that calculates the average. The result is printed on a Label, as I do…
-
0
votes1
answer174
viewsFormat conversion 0001-01-01T00:00:00Z from time field. Time
I’m using the ORM Gorm for a project, and in the columns referring to the dates, according to documentation, it is necessary to set the type team. Time in Structs fields that abstract dates. The…
-
0
votes0
answers52
viewsHow to correctly fill rows and columns using React datasheet?
I’m using the react datasheet to export and import data by pasting into my application tables. I expect all columns and rows I copy to be pasted normally. However, only one row and two columns are…
-
0
votes2
answers355
viewsFloat to str conversion without losing two decimal places and changing decimal separator
In Python, I need to convert a float to string and replace the point by comma, without losing the two decimal places. I have tried several ways, but could not. In doing: >>>…
-
0
votes0
answers74
viewsHow to format a date in Brazilian Javascript format?
How do I format a date for the Brazilian standard in Javascript? I looked in several places but I could not get the date to be displayed in the Brazilian standard. Summary of the problem: How the…
-
0
votes1
answer18
viewsI cannot change cell format with . setNumberFormat in google app script
I made the following registration page. I need to pick up exactly the amount of zeroes I add to the registration field However, when this data is added to the spreadsheet, only a zero appears. I am…
-
0
votes3
answers42
viewsAverage function in excel
I need to insert the average function in excel in ranges. For example, from A1:A5, just after A6:A10, A11:15 and so on. How do I make excel understand this logic? I thought to make him understand…
-
-1
votes1
answer547
viewsFormat measurement field with Jformattedtextfield
I’m trying to create a field to take measurements, I wanted to apply a mask so that it would look like this: The field already starts with 0.00, then if you type value it keeps formatting. And when…
-
-1
votes2
answers1299
viewsHow to format a Double by swapping a semicolon and keeping 2 decimal places in VB.NET
I need to transform the result of a value of As Double for the Brazilian numerical standard that uses comma instead of dot (and also maintain only 2 decimal places), thus: ' variaveis de teste '…
-
-1
votes2
answers701
viewsHow do I use %d or %c... in Cout instruction?
I am studying C and C++ and would like to understand how I could transform this code written with printf() in cout, or how to use the functions %d %x %c, etc. in the cout. int main() { printf("i…
-
-1
votes1
answer126
viewsList float number formatting
I have a dataframe with Latitude and Longitude columns, in string format Atibaia['LATITUDE'].head() 140 -231,124,852,387,647 245 -231,159,749,902,692 254 -23,116,747,205 512 -231,560,912,572,211…
-
-1
votes1
answer4029
viewsWhat is the difference between Class and CSS id?
I’m starting in CSS and I saw these two properties that are similar and perform the same function, so somehow they must have some difference or other kind of function maybe,I wanted to know the…
-
-1
votes3
answers246
viewsComparison of dates in PHP
I’m doing this code to compare the current date with the date I entered into the form, I used this logic to do this, but apparently it’s not working. What could be wrong? <?php $data =…
-
-1
votes1
answer219
viewsHow to escape the "{" character in a formatted string?
How would it be possible to make a string that uses the . format accept the use of keys as elements of the string and not escape it. Ex: I would like the variable s: interface = "alguma" s =…
-
-1
votes1
answer121
viewswrong structure in my code! does not fall in any condition
I need to make a python script using WHILE and IF to find out if a typed number is prime or not. Below follows my code. I can not find where this my mistake, because if I type any value above 2 does…
-
-1
votes1
answer39
viewsError making python formatting using . find command
I’m trying to find how many times the letter "A" repeats in a variable, but I can’t find the error when giving the format command. p = str(input('Digite uma frase: ')).strip().upper() print(f'…
-
-1
votes3
answers91
viewsMake a program that receives 5 numbers and show the following output:. C++
I’m having difficulty formatting the output code is working right, someone has idea how to fix the output #include <iostream> #include <cstdlib> #include <clocale> using namespace…
-
-2
votes3
answers226
viewsValue of the date is changing month by day
<input type="text" id="inicio" class="cad-input" name='dataInicial' value="<?php echo date('d/m/Y'); ?>" style="width: 190px;"></> , the variable in the format date('d/m/Y') and is…
-
-2
votes1
answer35
viewsGraphic description in overlapping pizza
How to solve this? Captions of the pie chart overlapping with others.…
-
-2
votes1
answer168
viewsHow to take back a date formatted in MMM/yyyy format for yyyy-MM format with date-fns
I want to take the value of a date string formatted as MMM/yyyy for the format yyyy-MM. For example, for abr/2017, want to return 2017-04. I wrote the following code with the library date-fns, but…
-
-2
votes1
answer51
viewsArray formatting
Good morning, everyone! I have a question about formatting an array in javascript. My code is that way. var oidup = ['5006144', '5006146']; //valores oid especifica var oids =…
-
-2
votes2
answers164
viewsHow to format a double number to N decimals without rounding?
I have a type value double and I would like to format it so that it gets 3 decimals only, unfurnished. For this, I’m trying to utilize the String.format as follows: float value =…
-
-3
votes2
answers352
viewsResult with incorrect formatting
I’m having the following difficulty: The calculation is doing right! R$ 0.01986 when the right one would be R$ 19.86 How do I format this result? Code of the result: <span style="font-size:…
-
-4
votes1
answer159
viewsSql query formatting in one line only
In some cases, when we save a query. sql, even if it is indented correctly in the SSMS when we open in the Notepad (windows) all the text is in one line, joining END with GO (ENDGO) at the end of a…