By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,260 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,260 IT Pros & Developers. It's quick & easy.

can we give multiply double variables by floating powers

P: 14
example
l=5*1e-7.8;
whether this 7.8 we can put or not

I m getting an error

syntax error : missing ' : ' before 'constant'
if this error is due to the power then how to overcome it
even if this is not because of it then also how to overcome from it
i have checked for ' : ' there is no mistake in it
Mar 20 '07 #1
Share this Question
Share on Google+
1 Reply


Ganon11
Expert 2.5K+
P: 3,652
I don't think you can use the e to represent 10 ^ -7.8 - you should try using an exponent function like pow() or writing your own.
Mar 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.