-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Suggestion: implement an exponentiation (power-of) operator #3603
Copy link
Copy link
Closed
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-Won't FixThe issue won't be fixed, possibly due to compatibility reason.The issue won't be fixed, possibly due to compatibility reason.WG-Languageparser, language semanticsparser, language semantics
Metadata
Metadata
Assignees
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-Won't FixThe issue won't be fixed, possibly due to compatibility reason.The issue won't be fixed, possibly due to compatibility reason.WG-Languageparser, language semanticsparser, language semantics
Currently, to get exponentiation (
$xto the power of$n), you must use the .NET framework:E.g., to calculate 2 to the power of 8:
It would be nice to have a dedicated operator, such as
**, as in other languages (e.g., Python, Ruby, JavaScript, Perl):