Ada Programming/Delimiters/**

Arithmetic Power of
The "**" operator is defined as arithmetic power of for all numeric types.

"**" (Left : T; Right : Integer) T;

Usage
A : Float   := 5.0 ** 2; B : Integer := 5 ** 2;

Working Example
; Operator_Power A : Float   := 5.0 ** 2; B : Integer := 5 ** 2; T_IO Ada.Text_IO; F_IO    (Float); I_IO    (Integer); T_IO.Put ("A = "); F_IO.Put (      Item => A,       Fore => 3,       Aft  => 1,       Exp  => 0); T_IO.New_Line; T_IO.Put ("B = "); I_IO.Put (      Item  => B,       Width => 3,       Base  => 10); T_IO.New_Line; Operator_Power;

Wikibook

 * Ada Programming
 * Ada Programming/Delimiters
 * Ada Programming/Operators

Ada 2005 Reference Manual


|**