Jump to content

Scientific notation


Recommended Posts

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 be

3.213x10^9 which equals 3,213,000,000

but i have no clue how to accomplish this.. or

4,230,000,000 which equals 4.23x10^9

I 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 by lopolop
Link to comment
Share on other sites

  • Moderators

MsgBox(0, '', (3.213)*(10)^9)


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)

Needs Beta.

Edited 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...