Stata 11 help for string()

string() -------------------------------------------------------------------------------

Title

[D] functions -- Functions

String function

string(n) Domain: -8e+307 to 8e+307 and missing Range: strings Description: returns n converted to a string: string(4)+"F" = "4F" string(1234567) = "1234567" string(12345678) = "1.23e+07" string(.) = "."

string(n,s) Domain n: -8e+307 to 8e+307 and missing Domain s: strings containing %fmt numeric display format Range: strings Description: returns n converted to a string: string(4,"%9.2f") = "4.00" string(123456789,"%11.0g") = "123456789" string(123456789,"%13.0gc" = "123,456,789" string(0,"%td") = "01jan1960" string(225,"%tq") = "2016q2" string(225,"not a format") = ""

strofreal(n) is a synonym for string(n).

strofreal(n,s) is a synonym for string(n,s).

Also see

Manual: [D] functions

Help: [D] functions, [D] functions (string functions)


© Copyright 1996–2009 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index