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.

Descriptions of the Library Routines 2flags(Optional; input) INTEGER(4). If specified, modifies the number 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: “NLSFormatTime”, “NLSFormatCurrency”, “NLSFormatDate”ExampleUSE IFNLSCHARACTER(40) strINTEGER(4) ii = NLSFormatNumber(str, "1.23")print *, str ! prints 1.23i = NLSFormatNumber(str, "1000000.99")print *, str ! prints 1,000,000.99i = NLSSetLocale("Spanish", "Spain")i = NLSFormatNumber(str, "1.23")print *, str ! prints 1,23i = NLSFormatNumber(str, "1000000.99")print *, str ! prints 1.000.000,99NLSFormatTimeNLS Function: Returns a correctly formatted string containing the time for the current locale.This function is only available on Windows* systems.Module: USE IFNLS2-225

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

Saved successfully!

Ooh no, something went wrong!