c0de 0.3.0This page in English

Diese Seite ist noch nicht übersetzt. Sie wird auf Englisch angezeigt.

FIX ​

Cuts off the decimal places of a number.

There is no rounding: -12.85 becomes -12. A number too large for an INTEGER raises NUMERIC_OVERFLOW.

Parameters and results

  • value INTEGER|FLOAT: the number
  • result result INTEGER: the number without decimal places

Example

c0de
CALL c0de/math/FIX
    PARAMETER value price ;
    RESULT result coins