1 Reply Latest reply on Aug 24, 2010 6:17 AM by try67

    Need Help In Displaying Numberic Values In app.alert

    Jim MacD Level 1

      How can I display a two placed decimal value in an app.alert, correctly?

       

      app.alert("Invalid  - " + this.getField("Sub-Total-2").value, 1);

       

      In the above alert, Sub-Total-2 is defined with 2 decimal places, within its Text Field Properties. But if its value is 2.50, it is displayed as 2.5 from within the alert. And still othertimes, its value is displayed values such as 56.33333333, when it should display 56.40