11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Caché</strong> <strong>ObjectScript</strong> FunctionsWhen “+”, “-” and “P” Format Codes are AbsentWhen format does not include any of the “+”, “-”, or “P” codes, then fnumber may containany one of the following:• No sign or parentheses.• Either the PlusSign locale property (“+” by default) or the MinusSign locale property (“-” by default) but not both. The position of this sign is determined by the “L” or the “T”format code if specified.• Leading and trailing parentheses.When “L”, “T” and “P” Format Codes are AbsentWhen format does not include any of the “L”, “T”, or “P” format codes, any sign present infnumber may be either leading or trailing (but not both).When “,” and “.” Format Codes are AbsentWhen format does not include either the “,” or “.” format codes, fnumber may optionallyhave NumericGroupSeparator symbols appear anywhere to the left or right of the DecimalSeparator,if any. However, each NumericGroupSeparator must have at least one digit to itsimmediate left and one to its immediate right.Mutually Exclusive Format CodesSome format codes conflict with each other. Each of the following pairs of format codes aremutually exclusive and result in an error:• “-+” results in a error• “-P” or “+P” result in a error• “TP” or “LP” result in a error• “TL” results in a error• “,.” results in a errorA error is also generated if you specify an invalid format code character.Null Format Provides Maximum FlexibilityYou can specify format as a null string. This is called a null format. When a null format isspecified, $INUMBER accepts a fnumber value with any one of the following sign conventions:226 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!