formatPriceNumber()

ICE Data Services -

formatPriceNumber()

 

formatPriceNumber( nValue )

 

This function will return a string with nValue correctly formatted for the chart that is being displayed. This is useful for converting a bar value to a chart display value when working with bonds, notes, currencies or any other instrument that has special formatting requirements.

 

Example:

 

sDisplayPrice = formatPriceNumber( close() );