Home› Programming
Discussion
Back to discussions page
Prasanna
Posts: 56 Apprentice
How to zero a variable getting NaN value |
34 views
|
Answered | |
/ Most recent by matthewd92
in Programming
|
2 comments |

in Programming
Hi @matthewd92
a=socket_read_asci_float(6)
b=a[1]
Sometimes i did not receive a from socket so it shown as '?' which defines 'not a number' i think.
Please refer attachments of errors.
When i wanted to run the program, i have to go and make it zero manually in order to run.
How to make it as zero when i receive such errors.
Note:i cannot use previous program values for some reasons.
a=socket_read_asci_float(6)
b=a[1]
Sometimes i did not receive a from socket so it shown as '?' which defines 'not a number' i think.
Please refer attachments of errors.
When i wanted to run the program, i have to go and make it zero manually in order to run.
How to make it as zero when i receive such errors.
Note:i cannot use previous program values for some reasons.


Tagged:
Gentle Reminder on this