Skip to content

RoundToZero

mtbeek32 edited this page Jan 31, 2024 · 8 revisions

Conversion functions roundToZero

syntax

roundToZero(a)

definition

roundToZero(a) results in a integer data item rounded off towards zero from data item a. Float32/64 data items are rounded off to the int32 value type, f/dpoint data items to the ipoint value type.

applies to

  • data item with float32, float64, fpoint or dpoint value type

since version

5.45

example

attribute<int32> roundToZeroA (ADomain) := roundToZero(A);
A roundToZeroA
1.49 1
1.5 1
-1.49 -1
-1.5 -1
-1.51 -1

ADomain, nr of rows = 5

see also

Clone this wiki locally