When I retrieve decimal data from MySql if the value is Example: 10.00 it retrieves 10.
I retrieve the data using:
Qt Code:
  1. while(query.next()){
  2. QString number=query.value("decimalColumn").toSomething(); //tried toString(),toDouble(),toFloat() and all are retrieving the same
  3. }
To copy to clipboard, switch view to plain text mode 
How can I setup so I retrieve full decimal value even if its *.00 ?

I can change fairly easy if the number appears like 99, but I get numbers like 99.90, so it if I append .00 there will be the issue of numbers appearing like 99.90.00.