The help file for strofreal() states that:
Yet, in Stata 16.1 to 18 I get:
that is, strofreal(42,"invalid") returns the empty string "", not "." as stated in the help file. Is this still the case for Stata 18.5 or higher? If so, could the documentation be changed to make the actual behavior clearer?
strofreal(R, format) returns "." if format is invalid.
Code:
. mata : strofreal(42,"invalid") == "." 0 . mata : strofreal(42,"invalid") == "" 1

Comment