Questions tagged [formatting]
The process of transforming text or data for presentation. A typical example would be the transformation of a decimal into a particular currency format with the correct number of decimal places.
formatting
13,836
questions
2
votes
1
answer
34
views
Calling ToString with own IFormatProvider doesn't work
This is about IFormattable and IFormatProvider. For sure one can achieve a reversed string representation of value 123 otherwise...
Every C# base data type implements the IFormattable interface. So ...
0
votes
1
answer
46
views
How to format user input in TextField as and when being entered by user in Flutter?
I'm trying to display the user input double (may be without decimal dot and that follows) number as a formatted value e.g. 123456789012.1234 as 12345,67,89,012.1234 using not the western numbering ...
0
votes
0
answers
14
views
Conditionally Apply Latex Commands
I am new to Latex and looking for some guidance.
I would like to have a variable I can set in my document to mark it as draft or as final
If it is draft I would like to be able to set a watermark for ...
0
votes
2
answers
33
views
f-strings: Skip thousands delimiter (comma) for four digits (1000); limit comma to five or more digits
I have a paper where the editors request I remove thousands separators (comma) for four digit-numbers. I used f-strings:
form=",.0f"
format(123456, form)
> '123,456'
format(1234, form)
&...
1
vote
0
answers
24
views
Date as number/text in YYYYMMDD format, but Excel won't format? [duplicate]
I'm working with a JSON dataset that presents dates as numbers in a column like so: 20190611, meaning it should be 2019-06-11. What can I do to get Excel to format these dates? Normal formatting doesn'...
0
votes
1
answer
12
views
Is there a way to format a LocalDate to take just the month and year
I have a spring boot app that I want the admin to be able to get the system report based on the month and year selected. System report in this case is the number of sales that was made in the selected ...
2
votes
1
answer
43
views
Scala f interpolator formatting for Java LocalDate
I'd like to be able to format strings based on Java.LocalDate using the f interpolator, i.e. something like:
val = LocalDate.of(2024,7,28)
f"$dt:YYYY-MM-dd"
But this will give a compile ...
-4
votes
0
answers
52
views
To make a Letterhead consisting of Company Name, Logo, Address using Python , PDFminer, Regex , Canvas, ReportLab and any other tools
Create a letterhead in pdf format,using python in which we can use pdfminer,extract text ,regex, and any other tools as such.That letterhead should contain name, logo of that company and company ...
0
votes
1
answer
36
views
XmlHttpRequest file (image) <=> raw data reformatting?
I have downloaded some basic image somewhere from google:
this picture looks like:
then I use this httprequest to read and save raw data of the image:
var xhr = new XMLHttpRequest;
xhr.open(&...
1
vote
2
answers
133
views
Displaying the literal char for all ASCII codes
Have a problem with a challenge in my C++ class.
The goal is to output all ASCII characters from 0-127 with 16 characters per line.
What we have had an issue with is certain chars such as 10 (\n) are ...
0
votes
1
answer
36
views
How to format labels in echarts in streamlit
I want my echart bar chart data labels rounded to 2 digits.
I know there is a formatter function for this:
label: {
show: true,
formatter: function(param) {
return param.data....
-4
votes
1
answer
55
views
how to sort a sequence of numbers treating them as a date but without zeros
These are sample 3 strings. The numerical sequence has no zeros. The correct date is on the right
P_2024713812 - "2024-07-13 08:12"
P_20241151212 - "2024-11-05 12:12" <-- last
...
0
votes
0
answers
7
views
How to enforce the .editconfig file not to change brace styles?
I want to ensure that existing brace styles in my project are preserved (some braces on the same line and some on a new line).
Here's a snippet of my .editconfig file
[*.cs]
indent_style = space
...
0
votes
0
answers
56
views
Appending docx using POI by keep original formatting
I am new to POI.
when I merge more than one docx with same fontFamily (Airal, Calibri, Times New Roman), there is no issue on combined docx. For example, If I have two docx with the same Calibri ...
0
votes
0
answers
25
views
Ag-Grid valueFormatter in defaultColDefs - does not work
This is probably the last obstacle in development process, so any kind of help be much appreciated, as soon as possible.
I am using Ag-Grid to display different columns. Columns are fully dynamic - ...