Switched from float to double format.
* Most of methods like log,abs etc. need double format.