Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisione Revisione precedente | Prossima revisioneEntrambe le parti successive la revisione | ||
software:qview:qview_6:qview60 [2015/04/20 15:22] – [7.6.9. Resto di moltiplicazione e divisione] qem207 | software:qview:qview_6:qview60 [2015/04/20 15:47] – [7.6.10. Arrotondamento all'intero più vicino] qem207 | ||
---|---|---|---|
Linea 1453: | Linea 1453: | ||
</ | </ | ||
- | ==== - Arrotondamento | + | ==== - Arrotondamenti |
- | Esegue un arrotondamento di un valore in floating point all' | + | ^ROUND|Esegue un arrotondamento di un valore in floating point all' |
+ | ^TRUNC|Esegue | ||
+ | ^FLOOR|Esegue un arrotondamento di un valore in floating point all' | ||
+ | ^CEIL|Esegue un arrotondamento di un valore in floating point all' | ||
+ | La sintassi è:\\ | ||
<code QCL> | <code QCL> | ||
ROUND(< | ROUND(< | ||
+ | TRUNC(< | ||
+ | FLOOR(< | ||
+ | CEIL(< | ||
</ | </ | ||
Esempio: | Esempio: | ||
<code QCL> | <code QCL> | ||
- | | + | |
+ | | ||
+ | gsValue = TRUNC(2.7) | ||
+ | gsValue = TRUNC(-2.7) | ||
+ | gsValue = FLOOR(2.7) | ||
+ | gsValue = FLOOR(-2.7) | ||
+ | gsValue = CEIL(2.7) | ||
+ | gsValue = CEIL(-2.7) ;risulta -2.0 | ||
</ | </ | ||
===== - Funzioni trigonometriche ===== | ===== - Funzioni trigonometriche ===== |