Getting floor value of x in Julia - floor() Method Last Updated : 21 Apr, 2020 Comments Improve Suggest changes Like Article Like Report The floor() is an inbuilt function in julia which is used to return the nearest integral value less than or equal to the specified value x. Syntax: floor(x) Parameters: x: Specified value. Returns: It returns the nearest integral value less than or equal to the specified value x. Example 1: Python # Julia program to illustrate # the use of floor() method # Getting the nearest integral value # less than or equal to the # specified value x. println(floor(5)) println(floor(5.9)) println(floor(5.5)) Output: 5 5.0 5.0 Example 2: Python # Julia program to illustrate # the use of floor() method # Getting the nearest integral value # less than or equal to the # specified value x. println(floor(2)) println(floor(2.1)) println(floor(2.4)) println(floor(2.5)) println(floor(2.6)) println(floor(2.9)) Output: 2 2.0 2.0 2.0 2.0 2.0 Comment More infoAdvertise with us Next Article Getting floor value of x in Julia - floor() Method K Kanchan_Ray Follow Improve Article Tags : Julia Similar Reads Getting ceiling value of x in Julia - ceil() Method The ceil() is an inbuilt function in julia which is used to return the nearest integral value greater than or equal to the specified value x. Syntax: ceil(x) Parameters: x: Specified value. Returns: It returns the nearest integral value greater than or equal to the specified value x. Example 1: Pyth 1 min read Getting square of absolute value in Julia - abs2() Method The abs2() is an inbuilt function in julia which is used to return square of the absolute value of the specified number x. Syntax: abs2(x) Parameters: x: Specified value. Returns: It returns square of the absolute value of the specified number x. Example 1: Python # Julia program to illustrate # the 1 min read Getting factorial of a number in Julia - factorial() Method The factorial() is an inbuilt function in julia which is used to return the factorial of the specified number n. Syntax: factorial(n::Integer) Parameters: n: Specified number Returns: It returns the factorial of the specified number n. Example 1: Python # Julia program to illustrate # the use of fac 1 min read Getting the remainder value after division in Julia - mod() Method The mod() is an inbuilt function in julia which is used to return remainder when the specified dividend is divided by divisor. Syntax: mod(x, y) Parameters: x: Specified dividend. y: Specified divisor. Returns: It returns remainder when the specified dividend is divided by divisor. Example 1: Python 1 min read Getting the absolute value of a number in Julia - abs() Method The abs() is an inbuilt function in julia which is used to return the absolute value of the specified number x. Syntax: abs(x) Parameters: x: Specified value. Returns: It returns the absolute value of the specified number x. Example 1: Python # Julia program to illustrate # the use of abs() method # 1 min read Like