12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

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.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “NLSEnumCodepages”, the DEALLOCATE statement in the Language <strong>Reference</strong>NLSFormatCurrencyNLS Function: Returns a correctly formatted currency string for the current locale. This functionis only available on Windows* systems.Module: USE IFNLSSyntaxresult = NLSFormatCurrency (outstr, instr [, flags ])outstr(Output) Character*(*). String containing the correctly formatted currency for the current locale.If outstr is longer than the formatted currency, it is blank-padded.instr(Input) Character*(*). Number string to be formatted. Can contain only the characters '0' through'9', one decimal point (a period) if a floating-point value, and a minus sign in the first position ifnegative. All other characters are invalid and cause the function to return an error.flags(Optional; input) INTEGER(4). If specified, modifies the currency conversion. If you omit flags,the flag NLS$Normal is used. Available values (defined in IFNLS.F90) are:• NLS$Normal – No special formatting• NLS$NoUserOverride – Do not use user overridesResults:The result type is INTEGER(4). The result is the number of characters written to outstr (bytes arecounted, not multibyte characters). If an error occurs, the result is one of the following negativevalues:• NLS$ErrorInsufficentBuffer – outstr buffer is too small• NLS$ErrorInvalidFlags – flags has an illegal value• NLS$ErrorInvalidInput – instr has an illegal valueCompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “NLSFormatNumber”, “NLSFormatDate”, “NLSFormatTime”2-222

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

Saved successfully!

Ooh no, something went wrong!