Category "formatting"

iOS convert large numbers to smaller format

How can I convert all numbers that are more than 3 digits down to a 4 digit or less number? This is exactly what I mean: 10345 = 10.3k 10012 = 10k 123546 = 12

Javascript: How to generate formatted easy-to-read JSON straight from an object? [duplicate]

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

Set color of TextView span in Android

Is it possible to set the color of just span of text in a TextView? I would like to do something similar to the Twitter app, in which a part of the text is blu