lopolop Posted February 16, 2006 Share Posted February 16, 2006 (edited) As of now i am making a project that will make my homework much easier. a calculator that i will update for each section in my class.. like before it was Quadratics and now its Scientific Notation.First does Scientific Notation work with autoit? what i want to do is put in The Scientific Notation which would be3.213x10^9 which equals 3,213,000,000but i have no clue how to accomplish this.. or4,230,000,000 which equals 4.23x10^9I basically want to make a converter but i cant think of how..ok i read in the help file that it was supported but dont no how to actually make it change to a number...Help File:Scientific notation is also supported; therefore, you could write 1.5e3 instead of 1500. Edited February 16, 2006 by lopolop Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 16, 2006 Moderators Share Posted February 16, 2006 (edited) MsgBox(0, '', (3.213)*(10)^9) Edit: Could use this as a starting ground I guess:Local $Multiply = '*' Local $Power = '^' MsgBox(0, 'Test', CalculateSum(3.213, $Multiply, 10, $Power, 9)) Func CalculateSum($f_FirstSum, $f_FactorOne , $s_SecondSum, $f_FactorTwo, $t_ThirdSum) Return Execute($f_FirstSum & $f_FactorOne & $s_SecondSum & $f_FactorTwo & $t_ThirdSum) EndFunc Needs Beta. Edited February 16, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
flyingboz Posted February 17, 2006 Share Posted February 17, 2006 StringFormat() Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
lopolop Posted February 19, 2006 Author Share Posted February 19, 2006 ok how can i check if is in the right form... (Number)E(Number) Link to comment Share on other sites More sharing options...
flyingboz Posted February 21, 2006 Share Posted February 21, 2006 ok how can i check if is in the right form... (Number)E(Number)sample script in the help file. play around w/ it. it takes a bit to get your head wrapped around it if you're not used to the printf style syntax. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now