These members of the
struct lconv structure specify how to print
the sign (if any) in a monetary value.
""(the empty string), meaning "unspecified". The ISO standard doesn't say what to do when you find this value; we recommend printing
positive_signas you find it, even if it is empty. For a negative value, print
negative_signas you find it unless both it and
positive_signare empty, in which case print `-' instead. (Failing to indicate the sign at all seems rather unreasonable.)
negative_sign.) The possible values are as follows:
CHAR_MAX. We recommend you print the sign after the currency symbol.
It is not clear whether you should let these members apply to the international currency format or not. POSIX says you should, but intuition plus the examples in the ISO C standard suggest you should not. We hope that someone who knows well the conventions for formatting monetary quantities will tell us what we should recommend.
Go to the first, previous, next, last section, table of contents.