gnuite: I've discovered that 'atof' function does not work well (I dont know why, my experience with Linux is limited ) turning the decimals. I have made my own function to translate from string to float and it's works!! . Mi position is correct now.