Formatting the Optimal Result with JavaScript
 
  The Xpress Insight JavaScript API enables you to invoke a wide range of library functions from within VDL.  
 
You can also create your own JavaScript functions within VDL via <script> blocks, but here, the Return scalar is formatted via a call to an existing function—insight.Formatter.formatNumber—which takes two arguments:
- the value to be formatted (here, this is the value of scenario.entities.Return.value), and
 - a Java-style formatting string.
 
