Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Ada Programming/Delimiters/-

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Delimiters - __TOC__ Operator Standard Operations Arithmetic Subtraction The "-" operator is defined as arithmetic subtraction for all numeric types. function "-" (Left, Right : T) return T; Usage A : constant Float := 5.0 - 2.0; A is now 3.0 B : constant Integer := 5 - 2; B is also 3 Minus sign The "-" unary operator is defined as arithmetic negative sign for all numeric types. function "-" (Left : T) return T; Usage A : constant Float := -5.0; B : constant Integer := -5; C : constant Integer := -B; C is now 5 See also Wikibook Ada Programming Ada Programming/Delimiters Ada Programming/Operators Ada Programming/Mathematical calculations Ada 95 Reference Manual 4 4 Expressions 4 5 3 Binary Adding Operators 4 5 4 Unary Adding Operators Ada 2005 Reference Manual 4 4 Expressions 4 5 3 Binary Adding Operators 4 5 4 Unary Adding Operators -