Apptio for All

Apptio for All

A place for Apptio product users to learn, connect, share and grow together.

 View Only
Expand all | Collapse all

HTML/CSS Question

  • 1.  HTML/CSS Question

    Posted Tue October 17, 2017 10:55 AM

    How can I adjust the code below to ALWAYS show 1 decimal place, even it it's zero?  The current will return a value of "$100.1,$100.2,$100.3," etc, but if the decimal place is a zero, ti will drop the decimal and show $100

     

    <div
    class="appsText"
    align="center"
    style="padding:0px 0px 0px 0px;
    font-size:18px;color:#353C45;">
    <b><%=numberformat((Annual(Forecast))/1000000,"$#,###.#")%></b>
    </br>


    #ApptioforAll


  • 2.  Re: HTML/CSS Question
    Best Answer

    Posted Tue October 17, 2017 01:00 PM

    Hi Doug,

     

    Go ahead and give this a shot:

     

    <div
    class="appsText"
    align="center"
    style="padding:0px 0px 0px 0px;
    font-size:18px;color:#353C45;">
    <b><%=numberformat((Annual(Forecast))/1000000,"$#,###.0")%></b>
    </br> 

     

    Notice the "0" instead of "#" in the numberformat formula


    #ApptioforAll


  • 3.  Re: HTML/CSS Question

    Posted Tue October 17, 2017 01:21 PM

    Very helpful...it worked.  Thank you @Shelby Ohyama


    #ApptioforAll


  • 4.  Re: HTML/CSS Question

    Posted Tue October 17, 2017 01:24 PM

    NP @Doug Copeland, your welcome


    #ApptioforAll