need to write inverse of hextoval. line 446 ui_mainwindow