Get just int part of a decimal

Hi,

I want just the int part of a decimal. Dont want to use decimaltoint(), because it rouds the value, and I can not do that for what I am doing for.
Thank you.

Hi John,

In Built in functions there are a couple of math functions and one of those functions is Trunc that does what you want.

Regards,

Marcelo

Marcelo Ferreira wrote:

Hi John,

In Built in functions there are a couple of math functions and one of those functions is Trunc that does what you want.

Regards,

Marcelo

Hi Marcelo,

Thank you for your answer.


a wark around would be transform in string do a split by the decimal separator and get the position 0 of the split list.


BR