Strange results of calculation