How to judge Infinity ?

Participant ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

I don't know how to judge when the value of the field is Infinity.

Is isFinite cannot be used ?

If not, how can I determine it?

TOPICS
Acrobat SDK and JavaScript, How to, PDF forms

Views

297

Likes

translate

Translate

Translate

Report

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 2 Correct Answers

Participant , May 09, 2020 May 09, 2020
Sorry ! It's my other mistake. isFinite is available. I want to erase this question but I don't know how to use this site.

Likes

translate

Translate

Translate
Most Valuable Participant , May 09, 2020 May 09, 2020
That is what causing your result to be "Infinity", as it's an illegal operation.

Likes

translate

Translate

Translate
Participant ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

Sorry ! It's my other mistake. 

isFinite is available.

 

I want to erase this question but I don't know how to use this site.

Likes

translate

Translate

Translate

Report

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
Most Valuable Participant ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

My guess is you're dividing by zero.

Likes

translate

Translate

Translate

Report

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
Participant ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

yes... sorry.

Likes

translate

Translate

Translate

Report

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
Most Valuable Participant ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

That is what causing your result to be "Infinity", as it's an illegal operation.

Likes

translate

Translate

Translate

Report

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