mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
Fixing some of my own typos...
(and a little improvement to wording that was bugging me) (cherry picked from commit 05718796db20145fcc712c7a826e8043e5177905)
This commit is contained in:
parent
79f97a1dfc
commit
ca55e41fe8
@ -491,7 +491,6 @@
|
|||||||
print("1.7".is_valid_float()) # Prints "True"
|
print("1.7".is_valid_float()) # Prints "True"
|
||||||
print("24".is_valid_float()) # Prints "True"
|
print("24".is_valid_float()) # Prints "True"
|
||||||
print("7e3".is_valid_float()) # Prints "True"
|
print("7e3".is_valid_float()) # Prints "True"
|
||||||
print("24".is_valid_float()) # Prints "True"
|
|
||||||
print("Hello".is_valid_float()) # Prints "False"
|
print("Hello".is_valid_float()) # Prints "False"
|
||||||
[/codeblock]
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
@ -765,7 +764,7 @@
|
|||||||
<return type="float" />
|
<return type="float" />
|
||||||
<argument index="0" name="text" type="String" />
|
<argument index="0" name="text" type="String" />
|
||||||
<description>
|
<description>
|
||||||
Returns the similarity index ([url=https://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient]Sorensen-Dice coefficient[/url]) this string compared to another. 1.0 means totally similar and 0.0 means totally dissimilar.
|
Returns the similarity index ([url=https://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient]Sorensen-Dice coefficient[/url]) of this string compared to another. A result of 1.0 means totally similar, while 0.0 means totally dissimilar.
|
||||||
[codeblock]
|
[codeblock]
|
||||||
print("ABC123".similarity("ABC123")) # Prints "1"
|
print("ABC123".similarity("ABC123")) # Prints "1"
|
||||||
print("ABC123".similarity("XYZ456")) # Prints "0"
|
print("ABC123".similarity("XYZ456")) # Prints "0"
|
||||||
|
Loading…
Reference in New Issue
Block a user