개인적인 정리

ORACLE FLOOR() 본문

DB/ORACLE

ORACLE FLOOR()

yeon.Biju 2020. 3. 30. 14:27

오라클 FLOOR()

 

FLOOR(n)

 

FLOOR returns the largest integer equal to or less than n. The number n can always be written as the sum of an integer k and a positive fraction f such that 0 <= f < 1 and n =k+f. The value of FLOOF is the integer k. Thus, the value of FLOOR is n itself if and only if n is precisely an integer.

 

This function takes as an argument any numeric data type or any nonnumeric data type that can be implicitly coverted to a numeric data type. The function returns the same data type as the numeric data type of the argument.

 

SQL > SELECT FLOOR(15.7) FROM DUAL ;

   --> 15

'DB > ORACLE' 카테고리의 다른 글

Oracle INSERTCHILDXML()  (0) 2020.04.06
Oracle INITCAP()  (0) 2020.04.06
Oracle GROUP_ID()  (0) 2020.04.06
Oracle GREATEST()  (0) 2020.03.30
ORACLE FIRST()  (0) 2020.03.30
ORACLE EXTRACT()  (0) 2020.03.30
ORACLE EXP()  (0) 2020.03.30
ORACLE EMPTY_BLOB(), EMPTY_CLOB()  (0) 2020.03.30
Comments