up previous next
IO.SprintTrunc

convert to a string and truncate

Syntax
IO.SprintTrunc(E:OBJECT,N:INT):STRING

Description
This function works like Sprint, turning the value of the expression E into a string, but if the string has length greater than N-1, it is truncated and the string ... is concatenated. This function is useful in formatting reports of results.

Example
Use R ::= Q[xy];
I := Ideal(x,y);
IO.SprintTrunc(I,4);
Idea...
------------------------------- 


See Also