How to a get the whole number without rounding in JavaScript
Hi, I'm a novice at JavaScript so please excuse me if my question is a bit simple.
In a PDF form, using Acrobat 9 Pro I'm trying to preform some mathematical calculations in a custom calculation script and I've hit a brick wall
I have a number in a variable, lets say 3.7. I want to return the whole number component, the "3" without rounding it up or down. I know I've done this in the past in AccessBasic, but I'm at a loss as to how to achieve it in JavaScript
I tried using toFixed(0) but that still round up. I've searched various JavaScript references but I'm unable to find a function that would help me.
The reason I'm trying to do it is rather convoluted, so I'm trying not to confuse you all by entering a long winded description of the problem. Any pointers would be gratefully received.
