E: Difference between revisions

From PenguinMod Wiki
E
Jump to navigation Jump to search
Content deleted Content added
Created page with "thumb The euler block is a reporter block that reports the value of euler's constant (2.71828)."
 
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Blocks
[[File:Block 6 5 2023-4 33 41 PM.png|thumb]]
|block_type = Reporter Block
The euler block is a reporter block that reports the value of euler's constant (2.71828).
|category = [[Operators Expansion]]
|title = e
|block_name=e::operators reporter}}

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

==Workaround==
This block can be worked around by using 1 as the input for the [[() of () (Operators)|() of ()]] operators block, the [[constant ()]] block with e selected, 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.
* [[() of () (Operators)|<sb>[e ^ v] of (1)::operators</sb>]]
* [[()|<sb>([2.718281828459045]::operators)</sb>]]
* [[constant ()|<sb>(constant [e v]::#7ac94f)</sb>]]
==See also==
*[[Pi (block)]]
{{DISPLAYTITLE:e}}
[[Category:Reporter Blocks]]
[[Category:Operators Blocks/Expansion]]
[[Category:Extension Blocks]]

Latest revision as of 18:54, 8 July 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 by using 1 as the input for the () of () operators block, the constant () block with e selected, 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.

See also