When I retrieve decimal data from MySql if the value is Example: 10.00 it retrieves 10.
I retrieve the data using:
while(query.next()){
QString number
=query.
value("decimalColumn").
toSomething();
//tried toString(),toDouble(),toFloat() and all are retrieving the same }
while(query.next()){
QString number=query.value("decimalColumn").toSomething(); //tried toString(),toDouble(),toFloat() and all are retrieving the same
}
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.
Bookmarks