Is it possible to convert the part before the decimal point to long long int and the part after the decimal point to long double float?
Example:
QString "1101.110";
and I would like to change that into two variables:
long long = 1101
long double = 0.110
I tried:
QString input = ui->inputbox->text();
long long whole = input.toInt();
double long fraction = input.toFloat();
If I input a number 110.10011:
whole outputs 0
fraction outputs 110.1 but I want it to output 0.10011