Ada Programming/Delimiters//

< Ada Programming < Delimiters <
Computing » Computer Science » Computer Programming » Ada Programming

Operator

Standard operations

Arithmetic division

The "/" operator is defined as arithmetic division for all numeric types.

function "/" (Left, Right : T) return T;
Usage
A : constant Float   := 5.0 / 2.0;  -- A is now 2.5
B : constant Integer := 5 / 2;      -- B is also 2

See also

Wikibook

Ada Reference Manual


Ada Operators
and and then > + abs &
or or else >= - mod
xor = < * rem in
not /= <= ** / not in
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.