ISaGRAF. Version 3.4


TRUNC


:

IN REAL

Q REAL IN>0

IN<0

:

.

(*FBD TRUNC*)

(* ST : *)

result := TRUNC (+2.67) + TRUNC (-2.0891);

(* : result := 2.0 + (-2.0) := 0.0; *)

(* IL : *)

LD 2.67

TRUNC

ST temporary (* TRUNC *)

LD -2.0891

TRUNC

ADD temporary

ST result