andreascostas
Board Regular
- Joined
- Jan 11, 2011
- Messages
- 150
I found UDF that gives the roots to ax^2+bx+c=0 using the quadratic formula.
The roots are given in decimals. Is there an easy way to change the decimals to improper fractions?
Example: for 15x^2+52x+45=0 the unction returns the roots as -1.8 and -1.667 each in separate cells.
What I need is a way to change -1.8 to -9/5 and -1.667 to 5/3
Can that be done? And how do I format the cells?
The roots are given in decimals. Is there an easy way to change the decimals to improper fractions?
Example: for 15x^2+52x+45=0 the unction returns the roots as -1.8 and -1.667 each in separate cells.
What I need is a way to change -1.8 to -9/5 and -1.667 to 5/3
Can that be done? And how do I format the cells?