E: Difference between revisions

From PenguinMod Wiki
E
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 5: Line 5:
|block_name=e::operators reporter}}
|block_name=e::operators reporter}}


The euler block is a reporter block that reports the value of euler's constant (2.718281828459045). To get the block, one must add the "Operators Expansion" extension.
The '''e''' block is a reporter block that reports the value of Euler's constant (2.718281828459045). To get the block, one must add the "Operators Expansion" extension.


However, when you do <sb>say (e::operators)</sb>or <sb>think (e::operators)</sb> it shortens into 2.72
However, when you do <sb>say (e::operators)</sb>or <sb>think (e::operators)</sb> it shortens into 2.72


==Workaround==
==Workaround==
This block can be worked around with the following blocks, or using anything else that reports the value of e. If this value is used multiple times in the code, a variable can be used.
* <sb>[e ^ v] of (1)::operators</sb>
* <sb>([2.718281828459045]::operators)</sb>
* [[() of () (Operators Block)|<sb>[e ^ v] of (1)::operators</sb>]]
* <sb>(constant [e v]::#7ac94f)</sb>
* [[()|<sb>([2.718281828459045]::operators)</sb>]]
* [[constant ()|<sb>(constant [e v]::#7ac94f)</sb>]]
{{DISPLAYTITLE:e}}
{{DISPLAYTITLE:e}}
[[Category:Reporter Blocks]]
[[Category:Reporter Blocks]]
[[Category:Operators Blocks/Expansion]]
[[Category:Operators Blocks/Expansion]]
[[Category:Extension Blocks]]

Revision as of 18:04, 23 June 2024

e
e::operators reporter
Caption
Block Type Reporter Block
Category / Extension Operators
Status Who tf uses status

The e block is a reporter block that reports the value of Euler's constant (2.718281828459045). To get the block, one must add the "Operators Expansion" extension.

However, when you do say (e::operators)or think (e::operators) it shortens into 2.72

Workaround

This block can be worked around with the following blocks, or using anything else that reports the value of e. If this value is used multiple times in the code, a variable can be used.