Negate: Difference between revisions

(Created page with "File:Negate1.png Negates the input number. A positive number turns negative and vice versa. File:Screenshot_2022-02-16-18-23-43-80_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks ")
 
(Added an example image)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[File:Negate1.png]]
{{Block
|image=Negate.png
|type=s
|folder=Math
|input1={{Port|n|Num}}
|output1={{Port|n|-Num}}
}}


Negates the input [[number]].
Negates the input [[number]].
Line 5: Line 11:
A positive number turns negative and vice versa.
A positive number turns negative and vice versa.


[[File:Screenshot_2022-02-16-18-23-43-80_6c69499164362a0dbe2f1dfe7c62199a.jpg]]
{{Image|Negate_example.jpg|Example}}


== Related ==
* [[Subtract Numbers]]
* [[NOT]]


[[Category:Blocks]]
[[Category:Blocks]]

Latest revision as of 17:04, 21 May 2024

Negates the input number.

Negate
Negate.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Num
Outputs -Num

A positive number turns negative and vice versa.

Example

Related