Decimal conversion in formula

When adding formula scripts, it is difficult to handle decimal.
How to floor, ceil, or round decimal?
Decimal cannot be changed to string using ToText, so regex cannot be used.

I want to know the conversion function for decimal.
Thanks!