Top "Formatting" questions

The process of transforming text or data for presentation.

How to add leading zeros?

I have a set of data which looks something like this: anim <- c(25499,25500,25501,25502,25503,25504) sex <- c(1,2,2,1,2,1) wt &…

r formatting number-formatting r-faq
Make a float only show two decimal places

I have the value 25.00 in a float, but when I print it on screen it is 25.0000000. How can I display …

objective-c formatting floating-point
How to format a java.sql Timestamp for displaying?

How do I formate a java.sql Timestamp to my liking ? ( to a string, for display purposes)

java datetime formatting
Insert text into textarea with jQuery

I'm wondering how I can insert text into a text area using jquery, upon the click of an anchor tag. …

jquery formatting textarea
Javascript: How to generate formatted easy-to-read JSON straight from an object?

Possible Duplicate: How can I beautify JSON programmatically? I know how to generate JSON from an object using JSON.stringify, …

javascript json formatting pretty-print
How can I convert byte size into a human-readable format in Java?

How can I convert byte size into a human-readable format in Java? Like 1024 should become "1 Kb" and 1024*1024 should become "1 Mb". …

java formatting apache-commons
Bootstrap 3.0: How to have text and input on same line?

I'm currently switching my website over to Bootstrap 3.0. I'm having an issue with form input and text formatting. What worked …

html formatting twitter-bootstrap-3
How can I break up this long line in Python?

How would you go about formatting a long line such as this? I'd like to get it to no more …

python formatting code-formatting
Left-pad printf with spaces

How can I pad a string with spaces on the left when using printf? For example, I want to print "…

c formatting printf
Easy pretty printing of floats in python?

I have a list of floats. If I simply print it, it shows up like this: [9.0, 0.052999999999999999, 0.032575399999999997, 0.010892799999999999, 0.055702500000000002, 0.079330300000000006] I could use print "%.2…

python printing formatting floating-point