Difference between revisions of "CEILING()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return the smallest integer that is greater than or equal to a given value
 
Function to return the smallest integer that is greater than or equal to a given value
 
  
 
==Syntax==
 
==Syntax==
 
CEILING(<expN>)
 
CEILING(<expN>)
 
  
 
==See Also==
 
==See Also==
 
[[BETWEEN()]], [[FLOOR()]], [[ISDIGIT()]], [[MAX()]], [[MIN()]], [[SIGN()]]
 
[[BETWEEN()]], [[FLOOR()]], [[ISDIGIT()]], [[MAX()]], [[MIN()]], [[SIGN()]]
 
  
 
==Description==
 
==Description==
 
The CEILING() function is used to return the smallest integer that is greater than or equal to a given value in the numeric expression <expN>.
 
The CEILING() function is used to return the smallest integer that is greater than or equal to a given value in the numeric expression <expN>.
 
  
 
==Example==
 
==Example==
Line 25: Line 21:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Numeric Data]]
 
[[Category:Numeric Data]]
 
[[Category:Numeric Data Functions]]
 
[[Category:Numeric Data Functions]]

Revision as of 11:40, 7 December 2012

Purpose

Function to return the smallest integer that is greater than or equal to a given value

Syntax

CEILING(<expN>)

See Also

BETWEEN(), FLOOR(), ISDIGIT(), MAX(), MIN(), SIGN()

Description

The CEILING() function is used to return the smallest integer that is greater than or equal to a given value in the numeric expression <expN>.

Example

? ceiling(354.89)
       355
? ceiling(354.19)
       355
? ceiling(-354.89)
      -354