Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > C Language Library Reference > Clib String Methods > Clib Get Formatted String MethodThe Clib Get Formatted String method returns a formatted string as a numeric literal or as an argument. If you use this method to format a floating point number to a specific number of decimal points, then it returns the value rounded to the number of decimal points that you specify. For example, if you use the following code to format the num argument, then it returns the num argument rounded to 2 decimal points: FormatClib.rsprintf([formatString] [,var1, var2, ..., varn]) Table 155 describes the arguments for the Clib Get Formatted String method.
ExampleEach of the following code lines includes an example of using the Clib Get Formatted String method followed by the resulting string: var TempStr = Clib.rsprintf("I count: %d %d %d.",1,2,3) //"I count: 1 2 3" |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |