Documentazione Invantiveparte di invantive cloud
Forum di supporto InvantiveAccedi / Registrati

SQRT

Sintassi

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

Scopo

La funzione SQL SQRT restituisce la radice quadrata del numero specificato.

Vedi anche POWER.

Parametri:

  • Dati di input (decimal): il numero di cui calcolare la radice quadrata.

Restituisce: un numero che rappresenta la radice quadrata del numero fornito.

Esempi

L'esempio seguente calcola la radice quadrata di 256:

select sqrt(256)

-------------------
16

L'esempio seguente calcola la radice quadrata di 2:

select sqrt(2)

-------------------
1.4142135623731