NAN instead of 0
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
- openomsk
-
- Posts: 52
- Joined: Thu Jun 20, 2013 8:59 pm
- Location: Russia
- Contact:
NAN instead of 0
Hello! I have a question about calculations. For example, you add the values of checkboxes and other elements. If none of the checkboxes is initially selected, or then NAN is given in the final amount. How can I make it be 0?
Last edited by openomsk on Wed Jan 25, 2023 8:35 am, edited 1 time in total.
- Pablo
- Posts: 23725
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: NAN instead of 0
What do you mean by 'cleaning'?
To which part of software is this question related?
To which part of software is this question related?
- openomsk
-
- Posts: 52
- Joined: Thu Jun 20, 2013 8:59 pm
- Location: Russia
- Contact:
Re: NAN instead of 0
there was an automatic substitution of the word, but I didn't notice 
fixed

fixed
- Pablo
- Posts: 23725
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: NAN instead of 0
Note that this is not specifiuc to WWB, this is standard browser behavior :
But you can use JavaScript to check for NaN
https://developer.mozilla.org/en-US/doc ... ects/isNaN
But you can use JavaScript to check for NaN
Code: Select all
isNaN()