Hi

I am trying to set the default value for a QInputDialog

Qt Code:
  1. double d= QInputDialog::getDouble(this,"Please enter Log base","Log Base = ",1.027459485, 1.0, 2.0 ,10, &ok);
To copy to clipboard, switch view to plain text mode 

However when I display the dialog the default value is display as

1.0300000000

Why is this?

Regards