Implemented mygetdouble function. still needs testing.
-tested myabs function