trunc
scorefile command -- truncate value of argument
USAGE:
val = trunc(someval)
trunc
returns the truncated (integer part) value of
someval
. Like all Minc functions, however, it returns it as a double (floating-point) value. For example
val = trunc(14.154978)
will set
val
to 14.0.
See also
round
.