Einzelnen Beitrag anzeigen
Alt 13.10.2012, 15:55   #193
leecher
Moderator
MINOF2

E r g e b n i s / R e s u l t
Return the smallest of two values passed to it

B e s c h r e i b u n g / D e s c r i p t i o n

MINOF2 calculates the smallest of two values passed to it and returns
the smaller.
Integers, decimals and dates may be passed to the routine.

S y n t a x
Code:
larger = call('MINOF2' , value1 , value2)
P a r a m e t e r

value1
value2 - may be integer, decimal or date values. If dates are involved,
then both values must be dates.

R e t u r n s
The smaller of the two values passed to the function.
If dates are passed to the function, then a date is returned.
If two integers are used, then an integer is returned.
If either of the two values is a decimal, then a decimal is returned.

B e i s p i e l / E x a m p l e
Code:
 
attach 'TOOLS' 
put call('MINOF2' , sysdate , sysdate - 1) ! prints yesterday's date 
detach 'TOOLS'
Q u e r v e r w e i s / R e f e r e n c e
MAXOF2
leecher ist offline   Mit Zitat antworten