Add more info on the nature of NAN
This commit is contained in:
@ -53,6 +53,7 @@
|
||||
<description>
|
||||
Finds the index of an existing value (or the insertion index that maintains sorting order, if the value is not yet present in the array) using binary search. Optionally, a [param before] specifier can be passed. If [code]false[/code], the returned index comes after all existing entries of the value in the array.
|
||||
[b]Note:[/b] Calling [method bsearch] on an unsorted array results in unexpected behavior.
|
||||
[b]Note:[/b] [constant @GDScript.NAN] doesn't behave the same as other numbers. Therefore, the results from this method may not be accurate if NaNs are included.
|
||||
</description>
|
||||
</method>
|
||||
<method name="clear">
|
||||
@ -66,6 +67,7 @@
|
||||
<param index="0" name="value" type="float" />
|
||||
<description>
|
||||
Returns the number of times an element is in the array.
|
||||
[b]Note:[/b] [constant @GDScript.NAN] doesn't behave the same as other numbers. Therefore, the results from this method may not be accurate if NaNs are included.
|
||||
</description>
|
||||
</method>
|
||||
<method name="duplicate">
|
||||
@ -87,6 +89,7 @@
|
||||
<param index="1" name="from" type="int" default="0" />
|
||||
<description>
|
||||
Searches the array for a value and returns its index or [code]-1[/code] if not found. Optionally, the initial search index can be passed.
|
||||
[b]Note:[/b] [constant @GDScript.NAN] doesn't behave the same as other numbers. Therefore, the results from this method may not be accurate if NaNs are included.
|
||||
</description>
|
||||
</method>
|
||||
<method name="has" qualifiers="const">
|
||||
@ -94,6 +97,7 @@
|
||||
<param index="0" name="value" type="float" />
|
||||
<description>
|
||||
Returns [code]true[/code] if the array contains [param value].
|
||||
[b]Note:[/b] [constant @GDScript.NAN] doesn't behave the same as other numbers. Therefore, the results from this method may not be accurate if NaNs are included.
|
||||
</description>
|
||||
</method>
|
||||
<method name="insert">
|
||||
@ -143,6 +147,7 @@
|
||||
<param index="1" name="from" type="int" default="-1" />
|
||||
<description>
|
||||
Searches the array in reverse order. Optionally, a start search index can be passed. If negative, the start index is considered relative to the end of the array.
|
||||
[b]Note:[/b] [constant @GDScript.NAN] doesn't behave the same as other numbers. Therefore, the results from this method may not be accurate if NaNs are included.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set">
|
||||
@ -173,6 +178,7 @@
|
||||
<return type="void" />
|
||||
<description>
|
||||
Sorts the elements of the array in ascending order.
|
||||
[b]Note:[/b] [constant @GDScript.NAN] doesn't behave the same as other numbers. Therefore, the results from this method may not be accurate if NaNs are included.
|
||||
</description>
|
||||
</method>
|
||||
<method name="to_byte_array" qualifiers="const">
|
||||
|
||||
Reference in New Issue
Block a user