|
#1
|
|||
|
|||
![]()
Hello. I need to get the same results I get by running the Excel function floor(number; significance) , round down a number to the closer multiple of the significance value. That is, if I run floor(100000; 12) on Excel I get 99996 , which is the closer integer down, multiple of 12. Sorry I can't find any similar in JavaScript. Thank you. Maurizio
|
#2
|
||||
|
||||
![]() Code:
var number = 100000; var significance = 12; return Math.floor(number / significance) * significance;
__________________
Ste Pennell FusionPro VDP Creator 9.3.15 Adobe Acrobat X 10.1.1 Mac OS X 10.12 |
#3
|
|||
|
|||
![]()
Thank you very much ! Maurizio
|
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|