eliminating decimal point without rounding
-
Hello!
I’m trying to get rid of a decimal point without rounding, already tried
floor(), ceil(), prec(), ToFixed()
without luck.I find out thattrunc()
do the trick in Javascript, but I don’t know how to implement it in the equation.This does not work:
(function(){ var result = trunc(fieldname2/fieldname4); jQuery('.equation-result').html(result); return result; })();
THx for your huge support to this plugins!!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘eliminating decimal point without rounding’ is closed to new replies.