11.7. Arithmetic Expressions

All third-generation language mathematical operations are provided.

x := -1;           -- x equals minus 3
y := -x;           -- y equals 3
y := -((-3))*(-1)) -- y equals –3
x := 2**10;        -- x equals 1024
x := 1/((60/24)    -- x equals number of seconds in a day

Get Programming Oracle® Triggers and Stored Procedures, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.