Excuse me but can someone answer my question
Excuse me but can someone answer my question
Try to be useful for your society,not important.
------------------------------------------------------
Every thing that has a beginning,Has an end.
Oh your right
well how can i use sin,cos,tan and sqrt
and how can i make the lineEdit to show numbers with more than 6 zeros(not user input)without using scientific notation and how can i make it to show floating pomt numbers with more than 5 digits after point(not user input) and one thing about user input the second quoted line in my two last post must make the lineEdit to accept just 10 integers after point but you can enter as many as you want.
How can i correct problems above?
Try to be useful for your society,not important.
------------------------------------------------------
Every thing that has a beginning,Has an end.
Or better yet "#include <cmath>" and use the std namespace.
About significant digits - remember floats have a limited precision. Use double instead of float wherever necessary. Scientific notation and "regular" notation has nothing to do with precision. If the precision is not what you wanted and you know the datatype can handle the required precision, it means you must have made a mistake while setting up the widget.
Last edited by wysota; 5th April 2009 at 23:40.
I included <cmath> and entered the line:
but it still gives the same errorusing namespace std
and what you mean by making a mistake while setting up the widget?
Try to be useful for your society,not important.
------------------------------------------------------
Every thing that has a beginning,Has an end.
The one in i mentioned in my fourth post.
[address] ~ can not be used as a function
Try to be useful for your society,not important.
------------------------------------------------------
Every thing that has a beginning,Has an end.
can you show us how you call this method? please, provide relevant code.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
with having :
at the topQt Code:
#include <QtGui> #include <cmath> #include "Calc++.h" using namespace std;To copy to clipboard, switch view to plain text mode
Qt Code:
else if (operation.contains("sqrt")) if(m_op1<0){ lineEdit->setAlignment(Qt::AlignLeft); lineEdit->setText("Sqrt accepts just positive numbers."); } else if (operation.contains("sin")) else if (operation.contains("cos")) else if (operation.contains("tan"))To copy to clipboard, switch view to plain text mode
Try to be useful for your society,not important.
------------------------------------------------------
Every thing that has a beginning,Has an end.
I don't see any problem. it should work fine.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
So what should i do?
Try to be useful for your society,not important.
------------------------------------------------------
Every thing that has a beginning,Has an end.
Bookmarks