PDA

View Full Version : just haven't found it


ids
08-05-06, 10:00 PM
I didn't find it in docs -- maybe I can't read anymore. :rolleyes:

In VC templates, I need to round off a number or MOD a number after division so it's a whole number.

%var|14 / 3|% isn't a whole number. I need the result to either round off to 5 or MOD to 4. I haven't been able to locate the syntax. I'm specifically in OPT at the moment.

TIA,

Scott

Vic - WolfPaw Computers
08-05-06, 10:04 PM
Try using an OpenToken instead.

%EXPR(14/3 MOD 0)%

ids
08-05-06, 10:26 PM
Try using an OpenToken instead.

%EXPR(14/3 MOD 0)%

Thanks Vic. I meant INT also. MOD returns the remainer, while INT returns the Whole number.

Scott

ids
08-05-06, 10:42 PM
That did it...thanks.

Scott