Converting double to char

This works fine. Thanks for help.