package Capitulo_2;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author felix
 */
public class redondea {
    static public void main(String args[]) {
        float pi = 3.1415926f;
        int pi_nvo = (int) (pi*100.0f + 0.5f);
        System.out.println(pi_nvo);
        pi = (float )pi_nvo/100.0f;
        System.out.println(pi);
    }
}
