hello guys I am not a programmer so for me it is more of a hobby. I am trying to write a small routine that calculates electrical parameters' such as voltage impedance resistance current etc: I have no problems with the actual program, but what I want to do is get for example 5,000 ohms to appear as 5 K.ohms or 5,000,000 as 5 M.ohms. also working with micro and pico. for capacitors, any help would be greatly appreciated.
best regards
jack
What I have tried:
I can write the formula for the actual items but can get an answer like 1.1962222086548E+56 for example
I have not tried any thing yet as I do not have a clue what to do