Old 06-23-2018, 09:48 AM   #1
preferred.nomenclature
Human being with feelings
 
Join Date: Dec 2014
Posts: 371
Default What does -1.#IND indicate?

In the JS IDE?
preferred.nomenclature is offline   Reply With Quote
Old 06-23-2018, 10:14 AM   #2
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,679
Default

Where do you see that? Screenshot? Or in some docs?
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 06-23-2018, 10:14 AM   #3
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,628
Default

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?
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-23-2018, 10:28 AM   #4
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

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.
Xenakios is offline   Reply With Quote
Old 06-23-2018, 10:39 AM   #5
preferred.nomenclature
Human being with feelings
 
Join Date: Dec 2014
Posts: 371
Default

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.
preferred.nomenclature is offline   Reply With Quote
Old 06-23-2018, 10:50 AM   #6
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Trying to divide something by zero is a common way to get that result as well, at least in Lua.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 06-23-2018, 11:29 AM   #7
preferred.nomenclature
Human being with feelings
 
Join Date: Dec 2014
Posts: 371
Default

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.
preferred.nomenclature is offline   Reply With Quote
Old 06-25-2018, 09:24 PM   #8
Time Waster
Human being with feelings
 
Time Waster's Avatar
 
Join Date: Aug 2013
Location: Bowral, Australia
Posts: 1,643
Default

You can get around this and similar issues by setting a flag in @slider to trigger the calculation in @block.
__________________
Mal, aka The Wasters of Time
Mal's JSFX: ReaRack2 Modular Synth
Time Waster is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.