() of () (Operators): Difference between revisions
() of () (Operators)
Content added Content deleted
No edit summary |
m (Removed caption text) |
||
Line 8: | Line 8: | ||
The '''() of ()''' block is a reporter block in the [[Operators]] category that allows for various functions to be used on a specific number. It originates from Scratch. |
The '''() of ()''' block is a reporter block in the [[Operators]] category that allows for various functions to be used on a specific number. It originates from Scratch. |
||
{| class="wikitable" |
{| class="wikitable" |
||
|+ Caption text |
|||
|- |
|- |
||
! Operator !! Description !! Default |
! Operator !! Description !! Default |
||
Line 41: | Line 40: | ||
|} |
|} |
||
==Workarounds== |
==Workarounds== |
||
e ^ and 10 ^ can be replicated by using the [[() (v) ()]] block, with 10 or the [[e]] reporter block as the first input, and "^" selected. ln and log can work around each other by using the change of base formula, and can also be worked around using the () (v) () block with log selected. |
e ^ and 10 ^ can be replicated by using the [[() (v) ()]] block, with 10 or the [[e]] reporter block as the first input, and "^" selected. ln and log can work around each other by using the change of base formula for logarithms, and can also be worked around using the () (v) () block with log selected. |
||
{{DISPLAYTITLE:() of ()}} |
{{DISPLAYTITLE:() of ()}} |
||
[[Category:Vanilla Blocks]] |
[[Category:Vanilla Blocks]] |
Revision as of 00:05, 24 March 2024
Images needed
This article needs images or better quality images. You can help PenguinMod Wiki by adding the images or uploading them.
() of () | |
---|---|
Block Type | Reporter Block |
Category / Extension | Operators |
The () of () block is a reporter block in the Operators category that allows for various functions to be used on a specific number. It originates from Scratch.
Operator | Description | Default |
---|---|---|
abs | Absolute value | Yes |
floor | Floor function (always rounds a decimal down [ex. 4.5 becomes 4, 10.1 becomes 10, 13.9 becomes 13, and 9 stays as 9]) | No |
ceiling | Ceiling function (always rounds a decimal up [ex. 4.5 becomes 5, 10.1 becomes 11, 13.9 becomes 14, and 9 stays as 9]) | |
sqrt | Square root | |
sin | Sine | |
cos | Cosine | |
tan | Tangent | |
asin | Arcsine (inverse sine) | |
acos | Arccosine (inverse cosine) | |
atan | Arctangent (inverse tangent) | |
ln | Natural log (log base e) | |
log | Log base 10 | |
e ^ | Exp function (e^x) | |
10 ^ | Raises 10 to a specific power |
Workarounds
e ^ and 10 ^ can be replicated by using the () (v) () block, with 10 or the e reporter block as the first input, and "^" selected. ln and log can work around each other by using the change of base formula for logarithms, and can also be worked around using the () (v) () block with log selected.