Round Divided Value

Comments

4 comments

  • David Gollom Strategic Partner
    Top Contributor
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Engaged

    You need to group each handlebar expression in parenthesis when nesting multiple helpers. 

    {{ceil (divide record.x 40)}}  

     

    1
  • Ezriah

    Sorry, David Gollom. I should have refreshed the page before posting.

    1
  • Ezriah

    Try putting parentheses around your divide field, so that the handlebar template knows to apply "ceil" to the result of the entire divide expression:

    {{ceil (divide record.LineInformation.0.OrderedQuantity 40)}}
    0
  • David Gollom Strategic Partner
    Top Contributor
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Engaged

    No problem Ezriah.  I've done that before too!  

    0

Please sign in to leave a comment.