Focus mode
Java'da ondalıklı yani küsuratlı sayıları belirten veri tipleri Float ve Double'dır.
Bu sorunun cevabı değişken olmakla beraber hangi durumlarda Double veya Float kullanımınız için dikkat etmeniz gereken hususlar
public class JavaPatika {
public static void main(String[] args) {
float number1 = 3.14F;
float number2 = 3.14f;
double number3 = 3.14;
}
}
Training Programs to Accelerate Your Software Career Progression
Are you struggling to learn software development on your own, and find yourself needing a mentor at challenging moments? Join our intensive 4-8 month training bootcamps with Patika+ programs, gain all the necessary skills with project-based live classes and trainings tailored just for you, and start your career!
You need to enroll in the course to be able to comment!