Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Round Down Value

New Here ,
Feb 16, 2017 Feb 16, 2017

Hi

I've Excel formula that Round the value of Perticular Cell. I want to implement this formula for the PDF file.

here is the excel formula, =FLOOR(P100,1000)

round Down.jpg

As you can see it Round Down the value nearest 1000.

I've try this script to do it but it only nearest value please see attached image

var rd=this.getField("RD").value

event.value=Math.floor(rd,1000);

Round down pdf.jpg

If any one can help me I appreciate.

thanks in advance

Meena

TOPICS
Acrobat SDK and JavaScript , Windows
840
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 16, 2017 Feb 16, 2017

Math.floor() only accepts one argument... the value you want rounded down. You'll need to divide the value by 1000 then round down then multiply by 1000 if you want to round to the nearest 1000.

Translate
Community Expert ,
Feb 16, 2017 Feb 16, 2017

Math.floor() only accepts one argument... the value you want rounded down. You'll need to divide the value by 1000 then round down then multiply by 1000 if you want to round to the nearest 1000.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 17, 2017 Feb 17, 2017
LATEST

Hi Joel

Thanks for your answer, it help me a lot.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines