1.2.439. Exponent Usage

Usage of the ** operator or **=, to make exponents.

<?php

$eight = 2 ** 3;

$sixteen = 4;
$sixteen \*\*\= 2;

?>

See also Arithmetic Operators.

1.2.439.1. Connex PHP features

1.2.439.1.1. Suggestions

  • Use the operator when no literal negative number is in the expression

1.2.439.1.2. Specs

Short name

Php/ExponentUsage

Rulesets

All, Changed Behavior, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55

Exakat since

0.8.4

PHP Version

With PHP 5.6 and more recent

Severity

Major

Time To Fix

Instant (5 mins)

Precision

Very high

Available in

Entreprise Edition, Exakat Cloud