Opened 3 years ago

Closed 14 months ago

#2386 closed enhancement (fixed)

rasql - support round() operator

Reported by: Bang Pham Huu Owned by: Dimitar Misev
Priority: major Milestone: 10.0
Component: rasserver Version: 9.8
Keywords: Cc: Dimitar Misev, Peter Baumann
Complexity: Medium

Description (last modified by Dimitar Misev)

rasql should support round(scalarExp/mddExp) operator to round floating-point arguments. The implementation should be similar to sin/cos for example, and use std::round under the hood (1 and 3). On integer inputs it shouldn't do anything, i.e. return the input as is.

Change History (6)

comment:1 by Bang Pham Huu, 2 years ago

Cc: Dimitar Misev added
Owner: changed from Dimitar Misev to ocampos

Otoniel could do this ticket.

comment:2 by Dimitar Misev, 23 months ago

Cc: Peter Baumann added
Owner: changed from ocampos to aburamadan

comment:3 by Dimitar Misev, 23 months ago

Description: modified (diff)

comment:4 by Dimitar Misev, 23 months ago

Description: modified (diff)

comment:5 by Dimitar Misev, 14 months ago

Owner: changed from aburamadan to Dimitar Misev

In addition to round, it should also support ceil/floor. All three functions are

  • defined only on float / double values
  • have result type same as the input type

comment:6 by Dimitar Misev, 14 months ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.