API Reference > OdEd Classes > OdEdUserIO Class > OdEdUserIO Methods > OdEdUserIO::getReal Method
OdEdUserIO::getReal Method
Syntax
C++
virtual double getReal(const OdString& prompt, int options = OdEd::kInpDefault, double defVal = 0.0, const OdString& keywords = OdString::kEmpty, OdEdRealTracker* pTracker = 0) = 0;
Parameters 
Description 
const OdString& prompt 
[in] Prompt output before pausing for user input.  
int options = OdEd::kInpDefault 
[in] Bitwise OR combination of OdEd::CommonInputOptions enum.  
double defVal = 0.0 
[in] Returned if user input nothing and OdEd::kInpReturnDefVal flag is set.  
OdEdRealTracker* pTracker = 0 
[in] Pointer to an IO Tracker for this user input. 

Returns user input of a double. 

 

If prompt is empty, a default prompt is used. 

This function uses the underlying OdEdBaseIO functions putString and getString for low level output and input.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.