vbscript-exponentiate

OPERATOR: ^


Implemented in version 1.0

^

The ^ operator, which is sometimes called « hat », is used to raise a number to a power.

Code:
<% power = 2^2 %>

Output:
4

Code:
<% power = 4.819^1.753 %>

Output:
15.7479305850686

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Vous pouvez utiliser ces balises et attributs HTML : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>