dokumentace k produktu Invantivesoučást invantive cloud
Fóra podpory InvantivePřihlásit se/ Zaregistrujte se

ABS

Syntaxe

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> | | ABS[ABS]:::quoted
    ABS --> End((END))

Účel

Funkce ABS SQL vrací absolutní hodnotu čísla jako decimal.

Parametry:

  • Vstup (decimal): Číslo.

Návratová hodnota: absolutní hodnota jako decimal.

Příklady

ABS načte absolutní hodnotu hodnot 5 a -5:

select abs(5), abs(-5)

-------- --------
5        5

ABS načte absolutní hodnotu výsledku výpočtu:

select abs(452.55 * -9.667)

----------
4374.80085