vippsupport.xerox.com    Forums  Hop To Forum Categories  - Xerox FF VI Suite Forum-  Hop To Forums  FF VI Suite (VIPP)    extract the integer part only

Moderators: Carlo Sans, jbouche
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
I need to print the integer part only of the below variable VAR3 in function PART_LOG.My code like below and I use VIPP ver 5.3.
Thanks
...
...
/VARCUSTSERIAL (0) /INI SETVAR
/VAR3 0 SETVAR
/VAR4 0 SETVAR
/VAR5 0 SETVAR
...
[ { /VARPRINT /SWP SETVAR (PART_LOG) SCALL } 0 290 000 680 00 12 2 /F1 BLACK] %(PART_LOG_NO)

...
/PART_LOG
%---------------
{
IF VARPRINT'r'8 1 eq
{/VAR5 VARCUSTSERIAL':'600 SETVAR
/VAR4 #VAR5 SETVAR
/VAR3 VAR4'+'1 SETVAR}
ELSE
{ /VAR3 ( ) SETVAR }
ENDIF
($$VAR3.) VSUB SHr
}
XGFRESDEF
 
Posts: 22 | Registered: 22 September 2006Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Try:
($$VAR3.) VSUB (@@@@@#) FORMAT SHr
or
($$VAR3.) VSUB 0 (.) GETINTV SHr
 
Posts: 1768 | Location: Switzerland | Registered: 04 May 2001Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
What about storing the integer part only from a real number into a variable to make some processing on it like addition or subtraction .
Thanks
 
Posts: 22 | Registered: 22 September 2006Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
quote:
What about storing the integer part only from a real number into a variable

/VAR1 ($$VAR3.) VSUB (@@@@@#) FORMAT SETVAR
or
/VAR1 ($$VAR3.) VSUB 0 (.) GETINTV SETVAR
will do.
 
Posts: 1768 | Location: Switzerland | Registered: 04 May 2001Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

    vippsupport.xerox.com    Forums  Hop To Forum Categories  - Xerox FF VI Suite Forum-  Hop To Forums  FF VI Suite (VIPP)    extract the integer part only