convert dimvalue 0-100 to 0-255 for tdtool