Skip to main content
gamedev.net
🔒 Locked

Converting with Scientific Notation?

Started by TFS_Waldo Mar 29, 2006 at 8:36 PM 1 replies 450+ views
Original Post
TFS_Waldo
TFS_Waldo
Hey, everyone. I am writing a program for a friend that is currently in college. He is taking a Physics course, and he asked me to write a program that can convert a lot of units to/from one another. But, the problem is, some of the conversions involve scientific notation. I was wondering how I could convert to sci. not. using C#. I use VS .NET 2003 Pro. Thanks in advance, Matt U.
:==- Why don't the voices just leave me alone?! -==:
Kambiz
Kambiz
Scientific notation? Sorry but I do not understand your problem. Can you give me an example?
In my calculator I just write " 1._bar ► _dyne/_cm^2 " and I get " 1.e6 dyne/cm^2 " isn't that enough?


[attention] Do you mean something like this:?
Console.WriteLine("{0:E}",.016);
output : 1.600000E-002

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.