mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
Merge pull request #80608 from emmanuel-ferdman/wip
docs: Fix link to two's complement wiki page
This commit is contained in:
commit
bbefba0264
@ -390,7 +390,7 @@
|
||||
<operator name="operator ~">
|
||||
<return type="int" />
|
||||
<description>
|
||||
Performs the bitwise [code]NOT[/code] operation on the [int]. Due to [url=https://en.wikipedia.org/wiki/Two%27s_complement/]2's complement[/url], it's effectively equal to [code]-(int + 1)[/code].
|
||||
Performs the bitwise [code]NOT[/code] operation on the [int]. Due to [url=https://en.wikipedia.org/wiki/Two%27s_complement]2's complement[/url], it's effectively equal to [code]-(int + 1)[/code].
|
||||
[codeblock]
|
||||
print(~4) # Prints -5
|
||||
print(~(-7)) # Prints 6
|
||||
|
Loading…
Reference in New Issue
Block a user