How would I code the negative value of an if else function? Would I just have to convert 1 x 10-5 to a decimal value?
if (x > 1 x 10-5)
{
cout << "Value" << endl;
{
else
Printable View
How would I code the negative value of an if else function? Would I just have to convert 1 x 10-5 to a decimal value?
if (x > 1 x 10-5)
{
cout << "Value" << endl;
{
else
can you eleobrate your problem in more detail
Well the complier won't complie past
if (x > 1 x 10-5)
Would I have to convert the 1 x 10-5 to a decimal value or is there another way ?
The expression 1 x 10-5 does not make sense. What exactly are you trying to compare?Quote:
Originally Posted by Guru_Kid
if you want to multiply 10 with 1 and then subtract 5 . then use *Quote:
1 x 10-5
to get decimal value of 1 x 10-5 can be calculated 1*10-5
He means 1e-5, I'm fairly sure.