AnsweredAssumed Answered

NumberFormat(round:x) won't display anything less than 3 decimals

Question asked by drdlund4 on Mar 24, 2016
Latest reply on Mar 24, 2016 by drdlund4

Does anyone know why using this construct in an infowindow won't allow me to display anything less than three decimal places?

 

Here is the complete construct:

 

var resTemplate = new InfoTemplate();

    resTemplate.setTitle("Customer Residence");

    resTemplate.setContent(

      "<b>Distance to Store: </b>${MI_TO_STORE:NumberFormat(round:2)} miles");

 

I have tried using both 2 and 1 and even changing the format of my data layer before publishing it to 2 decimal places, but the infowindow insists that it give me three decimal places.

 

Thanks in advance for any suggestions or insights.

Outcomes