program working for float and -ve nos