|
|
|
06-23-2018, 09:48 AM
|
#1
|
Human being with feelings
Join Date: Dec 2014
Posts: 371
|
What does -1.#IND indicate?
In the JS IDE?
|
|
|
06-23-2018, 10:14 AM
|
#2
|
Human being with feelings
Join Date: May 2006
Location: Surrey, UK
Posts: 19,681
|
Where do you see that? Screenshot? Or in some docs?
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
|
|
|
06-23-2018, 10:14 AM
|
#3
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
It means NaN - Not a number. That is usually, when in the variable that should be double, something is stored, that isn't double.
According to this StackOverflow-thread it is usually displayed on Windows-systems in such cases.
Do you have some example-code with which you've triggered this error-message?
|
|
|
06-23-2018, 10:28 AM
|
#4
|
Human being with feelings
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
|
Some floating point calculation has produced an invalid value.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
|
|
|
06-23-2018, 10:39 AM
|
#5
|
Human being with feelings
Join Date: Dec 2014
Posts: 371
|
Thanks! I am in Windows. Any other such debug values I should look out for? Couldn’t find that one documented anywhere.
I may well be back here shortly with some code if I can’t figure out why it’s evaluating as such.
|
|
|
06-23-2018, 10:50 AM
|
#6
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Trying to divide something by zero is a common way to get that result as well, at least in Lua.
|
|
|
06-23-2018, 11:29 AM
|
#7
|
Human being with feelings
Join Date: Dec 2014
Posts: 371
|
Indeed, I had a function in @slider that divides some number by tempo.
Did some digging and realized that code in @slider gets called once on initialization, at which point tempo is 0, which is mildly irritating.
|
|
|
06-25-2018, 09:24 PM
|
#8
|
Human being with feelings
Join Date: Aug 2013
Location: Bowral, Australia
Posts: 1,643
|
You can get around this and similar issues by setting a flag in @slider to trigger the calculation in @block.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:30 AM.
|