Einzelnen Beitrag anzeigen
Alt 13.10.2012, 15:06   #184
leecher
Moderator
TRUNC

E r g e b n i s / R e s u l t
Truncates the decimal part of a real (returns a real)

B e s c h r e i b u n g / D e s c r i p t i o n
This function Truncates the decimal part of a real

S y n t a x
Code:
result = call('trunc', value)
P a r a m e t e r
value - is any real value.

R e t u r n s
Returns a number of type real.

B e i s p i e l / E x a m p l e
Code:
attach 'dbfunc'
result = call('trunc',-5.77)
detach 'dbfunc'
leecher ist offline   Mit Zitat antworten