Bookshelf Home | Contents | Index | PDF |
Siebel Advisor API Reference > Utility Functions for Siebel Advisor > ConvertFloatToCurrencyUsageUse the ConvertFloatToCurrency function to display numbers in output targets in currency format, to two decimal places. If you do not use the ConvertFloatToCurrency function, you must write a custom function to format and display output target numbers in currency format. Use ConvertFloatToCurrency by itself or inside a BuildTarget function to format values before they appear in the application. SyntaxExampleThe following sample code uses ConvertFloatToCurrency with the BuildTarget function to convert and return numbers in currency format: <SCRIPT language="JavaScript"> document.write(ISS.BuildTarget("TEXT",window,"PRICE", In this example, ConvertFloatToCurrency returns numbers in text output targets in currency format. For example: Related TopicsRelated Topics |
Siebel Advisor API Reference | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |