Re: A92: Engineering notation
[Prev][Next][Index][Thread]
Re: A92: Engineering notation
>what i want it to do is recognize electronic notation as in kohms or
>megohms...
>can i get it to see a e3 as k and e6 as M and so on... what i am writing is a
>basic program that will do ohms law and have it output in eng notation with
>the correct metric prefix..
>
>would i just tell the program that e3 is k and have it disp like that using
>the if then else statements???
>
>thanks in advance :-)
I've got an idea:
1. input the number
2. convert it to a string
3. check for # of characters
4. store last 2 characters in a variable
5. if-then statements for that variable
I don't know if it will work, but it may give you a place to start.
------------------------------- ------------------------------------
| - Brandon May - | |
| | |
| mailto:may@tconl.com | /'^'\ |
| | ( o o ) |
------------------------------- --------oOOO----(_)----OOOo---------
References: