Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Group
Reviews
About us
Start
Start learning
Start learning now
Articles
Authors
All groups
All Articles List
CodeGym
/
Java Blog
/
Java Math
Java Math
89 members
Leaderboard
Popular
New
Old
Artem Divertitto
Java Math
3 January 2025 8:40
Java Math abs() method
What is the absolute value function in Mathematics? In mathematics, the absolute value of a number is equal to the positive value of the number passed.The absolute value function ignores the sign and returns the value without it...
Vasyl Malik
Java Math
17 July 2023 8:33
Math.PI in Java
What is “pi” (π) in mathematics? “The ratio of a circle’s circumference to its diameter i-e; 22/7 is represented by a constant value of 3.14159 is called “pi” in mathematics.” What is Math.PI in Java? “Math.PI is a static final double constant in Java, equivalent to in Mathematics.”...
Pavlo Plynko
Java Math
14 February 2025 7:33
Math.sqrt Method - Square Root in Java
Although calculating a square root in Java isn’t such a common question for software development interviews, sometimes, an interview might ask you something like: “You have an integer x. Create a Java program that would calculate its square root”...
Jesse Haniel
Java Math
22 December 2024 8:32
Math round() method in Java
All programming languages and computers in general can't work with infinite numbers. Rounding and trimming of numbers follows us literally everywhere, because the nature of modern computers is like that. Java language has a special class...
Artem Divertitto
Java Math
11 September 2023 11:54
Math pow() Method in Java
The Java language is equipped with a comprehensive library for mathematical functions and operations. It is called the "Math" class, and it resides in the java.lang package. The Math library includes methods for fundamental numerical operations, trigonometry, finding min-max...
Oleksandr Miadelets
Java Math
20 October 2023 12:09
Java Math max() Method
Java Math class contains the methods required to do mathematical calculations. One of the very common calculations we need is finding the maximum of two numbers. For this task, java has introduced a java.lang.Math.max() method. There are a few key things to know about...
Vasyl Malik
Java Math
14 June 2021 15:26
Java Math.ceil() method
It’s good to familiarize yourself with the ceil function in mathematics before we move to the ceil method in Java. What is the ceil function in mathematics? “A ceil function converts a decimal number to the immediate largest integer.” If the number passed is already a whole number or an integer, then the same number...
Alex Vypirailenko
Java Math
27 September 2021 11:17
Math.exp() method in Java
The Math class contains methods to work with mathematical functions. In this article, we are going to talk about the Math.exp() method in Java. It returns the number e raised to the power of a double value. What is an exponential function: a very short math introduction...
Volodymyr Portianko
Java Math
25 May 2021 9:16
Java Math.min() method
How to find min() of two numbers in Java? Java provides a system library known as “java.lang.Math” for extensive handy operations. From trigonometry to logarithmic functions, you can find min/max or even absolute of a number using the methods provided by this library due to its diverse functionalities...
Pavlo Plynko
Java Math
13 August 2023 8:43
Java Math random() Method
What is Math.random() Method in Java? The java.lang.Math.random() method returns a pseudorandom, “double” type number ranging from 0.0 to 1.0. Hence, the random number generated with the built-in method by Java always lies between 0 and 1...
Volodymyr Portianko
Java Math
30 September 2021 7:26
Math.cos() method in Java
Math class in Java contains a lot of mathematical functions. Trigonometric functions are among the most important functions for programming. One of these functions is Math.cos()...
Oleksandr Miadelets
Java Math
18 February 2025 11:17
Generating random numbers in Java
Random numbers are frequently used in programming for various applications, such as simulations, games, and cryptography. It could be, for example, password generators on websites or world generators in games...
Please enable JavaScript to continue using this application.