<div dir="ltr"><div class="gmail_extra"><div>So, I've been checking about nbx and infinite values... I can see you intentionally had nbx to clip at a certain range of values by default, more specifically, we see in the line 760 of g_numbox.c <span class="" style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre">double</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre"> min=-</span><span class="" style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre">1.0e+37</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre">, max=</span><span class="" style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre">1.0e+37</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre">,v=</span><span class="" style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre">0.0</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre">;</span><br></div><div><br></div><div>I think this should default to inf or -inf, but I see there's an issue that prevents us from being able to set it in the GUI interface.</div><div><br></div><div><div>The difference with the atom box is that if you have a range from 0-0 it doesn't clip, and it can go up to inf or -inf... but with nbx, a range of 0-0 clips it in this single value of 0... and since it does not understand if you type "-inf" or "inf" as an actual infinite float, we're pretty much tied up in setting this via the interface.</div><div><br></div><div>Nonetheless, it is possible to set the nbx to accept -inf or inf via a patch that sends a range message. I have this example attached.</div><div><br></div><div>Funny thing is that if you now open the properties you can see "-inf" and "inf" set as the range. But if you save the properties with those, it doesn't understand it and things get ruined again even if you have made this workaround :P</div><div><br></div><div>So this proves it it not a code or restriction from the object, but from the interface.</div><div><br></div><div>I personally like very much being able to print "inf" in a fancy number GUI box, so I think this is something that needs to be fixed, but how?</div><div><br></div><div>do you have any thoughts?</div><div><br></div><div>Suggestions:</div><div><br></div><div>- Have it not clip at all if you set the range values from 0-0 as in the atom number box.</div><div>- Make it understand "-inf" and "inf"</div><div>- create a check button for "none" for both lower and upper range, so it has no restriction </div></div><div><br></div><div>cheers</div><div><br></div></div></div>