Top "Format" questions

It may refer to text formatting, content format, file format, document file format, etc.

application.yml vs application.properties for Spring Boot

In my project i'm currently using application.yml for configuration. Spring Initializr generate application.properties? What are the Pro/Cons …

spring-boot properties configuration format yaml
Print Integer with 2 decimal places in Java

in my code i use integers multiplied by 100 as decimals (0.1 is 10 etc). Can you help me to format output to …

java format number-formatting output
Format number in R with both comma thousands separator and specified decimals

I'd like to format numbers with both thousands separator and specifying the number of decimals. I know how to do …

r format
Parsing a Datetime String into a Django DateTimeField

I have a Django app with a model that contains a field of type DateTimeField. I am pulling data from …

django datetime format
Format the text in JavaScript alert box

How can I format the text in a JavaScript alert box? I need a word in the text to be …

javascript html format alert
How to format elapsed time from seconds to hours, minutes, seconds and milliseconds in Python?

How can I format the time elapsed from seconds to hours, mins, seconds? My code: start = time.time() ... do something …

python time format elapsed
What is a good way to read line-by-line in R?

I have a file where each line is a set of results collected in specific replicate of an experiment. The …

r input format
Using printf with a non-null terminated string

Suppose you have a string which is NOT null terminated and you know its exact size, so how can you …

c string format printf
warning: format not a string literal and no format arguments

I want to remove the warning that i get on this line of the code, FILE *fil; char *imp; (...) fprintf(…

c++ c format warnings printf
Add 'decimal-mark' thousands separators to a number

How do I format 1000000 to 1.000.000 in Python? where the '.' is the decimal-mark thousands separator.

python format locale number-formatting digit-separator