A cellular phone includes an X-axis magnetic sensor for outputting a first value corresponding to a component of an external magnetic field along the direction of a transverse axis of the main body, and a Y-axis magnetic sensor for outputting a second value corresponding to a component of the external magnetic field along the direction of a longitudinal axis of the main body. The cellular phone includes a ROM which stores a conversion table defining the relation between the first and second values and values of azimuth and inclination angle of the longitudinal axis of the main body. The cellular phone determines the azimuth and inclination angle on the basis of the first and second values actually output from the X-axis and Y-axis magnetic sensors and with reference to the conversion table. <IMAGE>