Table of Contents

Search

  1. Preface
  2. RulePoint
  3. RulePoint Concepts
  4. Using RulePoint
  5. RulePoint Objects
  6. Working with Topics
  7. Working with Connections
  8. Working with Sources
  9. Working with Responders
  10. Working with Responses
  11. Working with Watchlists
  12. Working with Analytics
  13. DRQL
  14. Working with Rules
  15. Working with Alerts
  16. Setting Access Controls
  17. Troubleshooting RulePoint Issues
  18. Connecting to an Ultra Messaging Application
  19. Creating an Ultra Messaging JMS Source

User Guide

User Guide

roundup

roundup

The roundup analytic rounds a number up, away from zero.

Syntax

roundup(number1,[number2],,,num_digits)
The following table describes the required and optional arguments:
Argument
Required
Optional
Description
number
Required
The number that you want to round up away from zero.
number2
Optional
The other numbers that you want to round up.
num_digits
Required
The number of digits to which you want to round up the number argument.
The following table provides the datatype for the parameters you can pass:
Parameter Input Options
Datatype
Event property
Real number
Watchlist values
Real number
Example
when 1 stocktopic s with roundup(s.stockprice,2) as result = 27.28 then response with body=" ${result}"
The following table describes the result for the event property value that you pass:
Event Property Value
Description
Result
s.stockprice=27.2785
Rounds up 27.2785 to 2 decimal points.
27.28

0 COMMENTS

We’d like to hear from you!