double to String conversion, better way?
I need to convert from a double value to an architectural string format. EG:
25.875 ->> 25'-10 1/2"
To do this, I have written the following code, but I am not sure about it although it seems to work.
I thought I would post the code for any possible improvement suggestions:
On second thought, I will attach a CEdit derived class I use that converts the value from a real (double) to a string (in imperial) as required.
Take a look if you are interested.
its ugly I know!