Transcription of Stata: Software for Statistics and Data Science | Stata
{{id}} {{{paragraph}}}
Set variables output formatSyntaxMenuDescriptionOptionRemarks and examplesReferencesAlso seeSyntaxSet formatsformatvarlist%fmtformat %fmt varlistSet style of decimal pointset dp{comma|period}[, permanently]Display long formatsformat[varlist]where%fmtcan be a numerical, date, business calendar, or string format Set variables output formatNumerical%fmtDescriptionExamplerig ht-justified%#.#ggeneral% #.#ffixed% #.#eexponential% , hilo%16H%16 Lbinary, lohi%16L%8 Hbinary, hilo%8H%8 Lbinary, lohi%8 Lright-justified with commas%#.#gcgeneral% #.#fcfixed% with leading zeros%0#.#ffixed% #.#ggeneral% #.#ffixed% #.#eexponential% with commas%-#.#gcgeneral% #.#fcfixed% may substitute comma (,) for period (.) in anyof the above formats to make comma the decimal point. In%9,2fc, is ,03. Or you canset dp are many variations allowed.
The %gc format The %e format The %21x format The %16H and %16L formats The %8H and %8L formats The %t format The %s format Other effects of formats Displaying current formats Setting formats See [U] 12.5 Formats: Controlling how data are displayed for an explanation of %fmt. To review:
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}