October 23rd, 2003, 04:11 PM
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!
Last edited by MikeB; October 23rd, 2003 at 04:28 PM.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.