Skip to main content
Open topic with navigation CAPL Functions » General » Function Overview » _round

_round

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

Description

Rounds x to the nearest integral number. The rounding method used is symmetric arithmetic rounding.

Parameters

  • x: Number to be rounded

Return Values

  • Nearest integral number.
  • For very large numbers, you should use _round64, which returns a 64 bit integer.

Example