LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Decimal Points

    Employee
    Posted 07-13-2015 14:51

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: mw9286

    Hello:

    How do I only return the first two decimal positions on a double field?

    22.6666 would like to see 22.66

    Thank you


  • 2.  RE: Decimal Points

    Employee
    Posted 07-13-2015 15:31

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ryeh

    Do something like:

    emit someField.round(-2) as someFieldRounded