It uses the val2hex function from previous post:
.....................................................................................................
```c QString val2hex( int d ) { QString Hex="0123456789ABCDEF"; QString h = Hex.mid( d&15, 1 ); while( d>15 ) { d >>= 4; h = Hex.mid( d&15,1 ) + h; } return h; } QString decToBase( int value, int base, int digits ) { QString converted = ""; for( int i=0; i.....................................................................................................= base ) converted = val2hex(value%base) + converted; else converted = val2hex(value) + converted; value = floor( value/base ); } return converted; } ```