Sybase InfoMaker 11.5, CD, Win, ENG Especificaciones Pagina 776

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 828
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 775
Truncate
754 InfoMaker
Return value The datatype of x. If n is positive, returns x truncated to the specified number
of decimal places. If n is negative, returns x truncated to (- n +1) places before
the decimal point. Returns –1 if it fails.
Examples This expression returns 9.2:
Truncate(9.22, 1)
This expression returns 9.2:
Truncate(9.28, 1)
This expression returns 9:
Truncate(9.9, 0)
This expression returns -9.2:
Truncate(–9.29, 1)
This expression returns 0:
Truncate(9.2, –1)
This expression returns 50:
Truncate(54, –1)
See also
Ceiling
Int
Round
Argument Description
x The number you want to truncate.
n The number of decimal places to which you want to truncate x.
Valid values are 0 through 28.
Vista de pagina 775
1 2 ... 771 772 773 774 775 776 777 778 779 780 781 ... 827 828

Comentarios a estos manuales

Sin comentarios