package CHAPTER02;


public class FloatingPointExample {
	
    public static void main(String[] args) {
    	
    	// 일반적인 부동소수점 리터럴
        double pi = 3.14159;
        float speedOfLight = 3.0e8f; // 3.0 × 10^8

        // 지수 표기법을 사용한 부동소수점 리터럴
        double avogadroNumber = 6.022e23; // 6.022 × 10^23
        double electronMass = 9.109e-31;  // 9.109 × 10^-31
        float smallNumber = 2.5e-3f;      // 2.5 × 10^-3 (0.0025)

        System.out.println("Pi: " + pi);
        System.out.println("Speed of Light: " + speedOfLight);
        System.out.println("Avogadro's Number: " + avogadroNumber);
        System.out.println("Electron Mass: " + electronMass);
        System.out.println("Small Number: " + smallNumber);
    }
}
