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
-
1
votes3
answers193
viewsConditional formatting on line R
I wanted to replace the empty fields (Nas) in 'number of turns' with the variable (VAR1 - 3) that is filled. I plan to do it in a larger date.frame. As you suggest?…
-
1
votes1
answer53
viewsPower function returning incorrect values within the while loop
I have a function power that returns the value of a potentiation receiving the parameters n and p (n^p). Outside the loop while the function returns the correct values, but within the loop function…
-
1
votes1
answer329
viewsTime formatting problem when using Moment.js and Dialogflow
I have a problem typing some time in Dialogflow for my chatbot. I know the system works with AM and PM, but I tried to format the date with Moment.js (follow the code below), but it is not working.…
-
1
votes1
answer593
viewsFormatting Django decimal number template
I’m having trouble displaying the results of a calculation. I have a Decimalfield and want to return it formatted this way: 1.000.000,00 If I order to display normally without tags, it looks like…
-
1
votes2
answers88
viewsHow to print a decimal value with comma ex: 75.0 would be 7.5?
using System; class teste { static void Main(string[] args) { float nota1, nota2, MEDIA; med1; nota1=float.Parse(Console.ReadLine()); …
-
1
votes1
answer554
viewsCalculation of salary needs to limit houses
An employee of a company receives salary increase annually: It is known that: This employee was hired in 1995, with initial salary of R $ 1.000,00; In 1996 he received a 1.5% increase over his…
-
1
votes1
answer86
viewsProblem for centralized printing in C
I have the following problem, in my code I want the program to centrally print the number 1 after the "word", and to center I am using the parameter "%-20s \t" to try to center the number after the…
-
1
votes1
answer36
viewsHow to remove null decimal part (00) of Javascript number formatting?
I intend in Javascript to have the following result: Entree Expected exit 1.6 1,60€ 1 1€ 1.55 1,55€ I’ve tried to: num.toLocaleString('pt-PT', { minimumFractionDigits: 0, maximumFractionDigits: 2 })…
-
1
votes1
answer442
viewsSet decimal numbers in a string list - Python
I hope you can help me! I am on a project where I am creating some Graphics for a system that is used by people from various countries. Because of this, I created a function called formatC that,…
-
1
votes2
answers292
viewsjava.util.Illegalformatconversionexception: d != java.lang.Integer
What’s going on here? I don’t think I can read the documentation from String format.(). For me this date/time conversion %td When receiving an integer within the interval of the day of the month it…
-
1
votes1
answer41
viewsInclude a character in an excel python values
I have a dataframe whose column has 12 characters. However most on the left are zeros and at the end of it I have the values. Examples: I’m trying to include a comma or dot before the last 2…
-
1
votes1
answer63
viewsHow to align numbers on the left using str.format?
I’m studying about format strings and I’m not getting the same alignment behavior on the left with the minus sign (-) using the function format. What is the right way to do this using format?…
-
0
votes1
answer436
viewsFormat date to Brazilian format using webservices
How to format a data timestamp for timestamp br. ex. 2015-02-03 15:37:00 para 03/02/2015 15:37:00 Obs: the date is a text
-
0
votes0
answers174
viewsFormat an input number
I have a system that calculates the average of the fields and then executes the javascript below, only the result comes out like this 0.222048 and the correct would be 222.048, how to do this…
-
0
votes2
answers586
viewsMaskformatter leaving empty space
In my project, I have an age field, where I want to receive at most 3 number, so I did this : mskIdade = new MaskFormatter("###"); so far so good, but every time I type a number with less than 3…
-
0
votes2
answers130
viewsJformattedtextfield is accepting no characters
I have a window where we have a JFomattedTextField called txtQuantia, I applied a mask to him called mskQuantia, and set the valid characters, in this case, 0-9, but this field is not accepting any…
-
0
votes1
answer141
viewsSP_HELPTEXT without formatting
When a Trigger is compiled by TOAD for SQL, using the F9 button and not F5, it is inserted into syscomments with wrong formatting, as if it were a single line, where line breaks are disregarded. The…
-
0
votes0
answers41
viewsinsert and update date values in DB using a makedtextbox C#
Hello, while I was developing a system to manage the records in DB error is happening that when entering the values the data records become empty and when trying to update the information listing it…
-
0
votes1
answer653
viewsMy css file does not change formatting
A few days ago I had this problem. I put the css file in the home.php document <link href="css.css" rel="stylesheet"> formatting will, but then when I include other formatting in the css.css…
-
0
votes2
answers2249
viewsHow to resolve a string formatting error?
I was programming normally in VS in "Console" mode when I came across this message: "A first chance Exception of type 'System.Formatexception' occurred in mscorlib.dll An unhandled Exception of type…
-
0
votes1
answer1027
viewsPrint Format & End in Python
I’m creating an application that connects to db Sqlite, query and returns the column of the table in question, the problem is that the returned result without formatting comes like this : ( u'Field…
-
0
votes1
answer1522
viewsChange number of digits after comma depending on the situation
I know I can get a limit of digits after the comma with %.2f for float and %.2lf for double. How can I change this limit depending on the occasion? For example: Get a two-digit limit with float that…
-
0
votes1
answer1020
viewsCreating field with weight format with two decimal places and 3 houses before the comma
I’m trying to create a "weight" field, but I’m having some problems. The weight can vary from 2 to 3 decimal places before the point. For example, it could be 80.00 Kg or 100.00 Kg. However, the way…
-
0
votes1
answer691
viewsMeaning of %in strings!
Hi, I was following a video formatting lessons of strings in Python and I saw that the teacher used %d and %, but my internet is having problems to load the video, I wanted to know what that means %…
-
0
votes3
answers866
viewsEntering numerical data in the database
I’m having trouble inserting into the database the field is formatted as DECIMAL(10,2)), when I try to insert the direct monetary value by Mysql works with the endpoint instead of the comma ex:…
-
0
votes1
answer563
viewsJtable currency format
I am making a Cellrender with currency format. I placed 13 columns in a jtable, one has the recipes (Salary, 13th salary, Overtime).. and other 12 with the months. each month the person will enter…
-
0
votes1
answer318
viewsI can’t change my column collate in mysql to utf8_general_ci
Good morning Personal. I have a problem with changing the collate of a column in my database. An example of how I am running: ALTER TABLE `minhaTabela` CHANGE COLUMN `nome` `nome` VARCHAR(50) NULL…
-
0
votes3
answers1664
viewsString Format CPF on Android
I have a CPF variable that is populated with a value that comes from the database (11122233344). Before giving setText(), I need it to be formatted in 111.222.333-44. How could I do this?…
-
0
votes2
answers847
viewsFormat phones in mysql table
I have a MYSQL table with the registration of people that phones are formatted this way. 519995150105 5133116284 51991178789 51999862438 What I need is a command to format the phones to look like…
-
0
votes1
answer269
viewsFormat string in PHP
I saw some examples here on Stackoverflow, but I just couldn’t. I need to format this string: 'personalization_id="v1_i8b1bAFy7m6K+j3TseNGDw=="' If I use one $cookie = explode('=', $cookie); she…
-
0
votes0
answers44
viewsUnknown date format on Oracle
Good morning. I have to access the data in an Oracle database, where a field described as "validation date" has the following data: DtValid ------- 115365 115364 115363 115362 115361 Does anyone…
-
0
votes2
answers2054
viewsFormat Angular Date
Hello, I have the following string: Tue Oct 16 2018 00:00:00 GMT-0300 (-03) And I wanted to format it into dd/mm/yyyy and my goal is to stay 16/10/2018 How I would have to do this formatting…
-
0
votes1
answer311
viewsHow to format a field with ASP.NET Webforms C#
I need to format Textbox <asp:TextBox runat="server" id="txtValor" MaxLength="20"></asp:TextBox and I’m having a lot of difficulty, first this grid is open in a modal, I mean, when I create…
-
0
votes0
answers245
viewsHow to format Python file in VS Code?
I am trying to format a Python document in VS Code, and the following message appears: command 'php.untrustValidationExecutable' not found How can I fix this? NOTE: Another problem, I have installed…
-
0
votes1
answer1130
viewsHow to use Tformatsettings in Delphi 10 Tokyo?
How do I set regional date, time, decimal separator, mile separator settings in Delphi 10 Tokyo? Previously, in Delphi 7, there were global system variables. In newer versions they created the…
-
0
votes1
answer209
viewsHow to send formatted HTML message to outlook via Form
I am having a small problem, I am trying to send via Outlook an email from a Send via Form, however when it goes to Outlook appears all messed up: "comment=ção são é é". <form…
-
0
votes1
answer43
viewsProblem in website formatting
Good morning, I’m having a problem with the css of my site it only works from the Laptop up to 4K, someone can tell me why? /*Mobile S*/ @media only screen and (max-width: 320px) { .content{…
-
0
votes1
answer50
viewsValue placed in "define()" is not displayed correctly
Well personal, I am writing a system of "versioning", I have a class that collects and compares some information. In index of my project I pass the current version of the system and in the…
-
0
votes1
answer345
viewsWhat is the correct syntax to turn a variable into Bold or Color (PHP)?
Actually I don’t even know how to ask this correctly, so I’ll try to explain as much as I can to my doubt... I have the following line of code. <?php echo strval($tour_availability); ?> This…
-
0
votes1
answer160
viewsNegative, positive and zero numbers do not return as expected
The code is ignoring the type variable int and is receiving real values. Also, when I enter a character it returns that is zero and not that it is not a valid number. Identify whether it is…
-
0
votes1
answer408
viewsString Formatting - PYTHON Alignment
my question is, instead of :>6, I wanted the user to be able to choose the amount of characters to be aligned to the right, for example, there instead of 6, I would put the variable n. However,…
-
0
votes1
answer1014
viewsFormat Duration - Timer
I am trying to format in Dart/Flutter the timer a certain time elapsed, whose code: Duration _tempo = new Duration(); Text('Tempo: ${_tempo.inHours}:${_tempo.inMinutes}:${_tempo.inSeconds}'), The…
-
0
votes0
answers281
viewsReturn data with database formatting in a Textarea
Good evening, I am saving the data in the database correctly, IE in the database is recorded: <p style="text-align: center;"><strong>teste negrito</strong></p>…
-
0
votes1
answer117
viewsINPUT[TYPE=RADIO] Label Formatting
Good morning to you all. Forgive me if this question has already been asked here but I have looked and found nothing similar. I’m putting together a survey to be used in smartphones and I have a few…
formattingasked 5 years, 8 months ago cfreitasc 43 -
0
votes3
answers381
viewsHow to remove hours from a Datetime string
I’m pulling a datetime record from my database and I’m formatting it to the traditional Brazilian format, however, I can’t remove the hours after the last value, always repeats the time. This is my…
-
0
votes1
answer162
viewsFormat Switch in Power BI (DAX)
good night! I’m new to DAX and I’d like a hand with the following question: Meta Formatada = SWITCH (KPI.Formatacao , "Money", FORMAT([Meta],"Currency") , "Numeric", FORMAT([Meta],"General Number")…
-
0
votes1
answer89
viewsDoes not print numeric digits
1 - Crie um programa em linguagem C, que tenha os seguintes itens (0.5 pontos). a) Armazenar em uma constante do tipo caractere, o número do seu RA sem o traço. b) Criar um vetor do tipo inteiro com…
-
0
votes1
answer99
viewshow to create css for pdf
Good afternoon to all!! Guys, I’m developing an application that generates a pdf, and this pdf needs to have a certain formatting, however, I’m a little lost here... for example, I create a div,…
-
0
votes0
answers13
viewsFormat no Octave
Hi, I’m applying the textscan function to the Octave and I want it to read 3e-6 and 100, and turn to 3.0000e-06 and 1.0000e+03, as I should write this textscan??
-
0
votes0
answers32
viewsVisual Studio - Xaml expanding alone
Visual Studio 2019. When I type "<" to include a new component, all of the tags below are expanding, probably by generating an unopened tag error, how to solve this problem so my code doesn’t…