EdgeQL Tutorial

Operators

Subtopics

All the basic arithmetical operators are available for the numeric types as you would expect:

Input
Run
Output Objects
Press the 'Run' button to evaluate the input
Input
Run
Output Objects
Press the 'Run' button to evaluate the input
Input
Run
Output Objects
Press the 'Run' button to evaluate the input

There's a caveat that you cannot mix limited and unlimited numerical scalars in any operation. This is done deliberately so that you cannot accidentally end up switching between these types and get results that are potentially not portable between EdgeDB and other systems that don't implement bigint or decimal:

Input
Run
Output Objects
Press the 'Run' button to evaluate the input
Input
Run
Output Objects
Press the 'Run' button to evaluate the input
Input
Run
Output Objects
Press the 'Run' button to evaluate the input