In PSM 6.1.2, the "INT" function does not work properly, and does not round down the number as it should. Until the issue is fixed in a future release, here is a fixed version of the command, using the javascript macro feature of PSM.
How to install:
- Copy the code below in an empty text file using Notepad(it's very important, as the text must be saved in pure ASCII text. Other text editors might not always work).
- Save the file in the "Macro" directory of PrintShop Mail 6, and give it a .js extension.
- Start or restart PrintShop Mail.
How to use:
- Use it exactly as you would use INT, but use INT_FIXED instead. It's the exact same usage.
Limitations:
THIS INFORMATION IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. USE AT YOUR OWN RISK.
MACROS are NOT SUPPORTED in ANY way.
code:
--------------------------------------------------------------------------------
// ****************************************************************************
// Function: INT_FIXED
//
// Fixed Int() function since as of PSM 6.1+, INT is broken and doesn't return
// the rounded down numbers as it should.
//
// Language: JScript
// Written by: Rapha