iccaros Posted March 1, 2007 Report Share Posted March 1, 2007 we are converting over c++ classes to c# at work (why ..well lets say that code that works in VS 2003 c++ dose not work in VS 2005 and we have no stong C++ programmers to fix the issues)I have some thing like this1.e-20is e an exponet? and if so could change this to 1.0^-20 ?for c# Quote Link to post Share on other sites
iccaros Posted March 1, 2007 Author Report Share Posted March 1, 2007 never mindMath.POW(1.0,-20)is the anwer Quote Link to post Share on other sites
jcl Posted March 4, 2007 Report Share Posted March 4, 2007 (edited) "1.0e-20" or "1e-20" should work. (I don't have the C# spec handy but mcs accepts both.) Edited March 4, 2007 by jcl Quote Link to post Share on other sites
iccaros Posted March 8, 2007 Author Report Share Posted March 8, 2007 "1.0e-20" or "1e-20" should work. (I don't have the C# spec handy but mcs accepts both.)thanks, it was throwing strange errors before, so I did it the VB way, but it does work like thisvoid test() { double x =5; double b = x * 2e-20; } Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.