format double type displaying on GUI