djm2
1st February 2014, 12:04
Hi there
I am working with QT creator 2.8.0 and I am trying to split up a value to be processed. I have a floating point value say for example 12.34567 and I want to extract the 12 part and the 34567 part separately. I will then use the two values in the rest of my code. Can anyone point me in the right direction? I saw this post - http://qt-project.org/forums/viewthread/12441 but it doesn't seem to like it. I know its an easy question but I am a newbie.
Thanks
I am working with QT creator 2.8.0 and I am trying to split up a value to be processed. I have a floating point value say for example 12.34567 and I want to extract the 12 part and the 34567 part separately. I will then use the two values in the rest of my code. Can anyone point me in the right direction? I saw this post - http://qt-project.org/forums/viewthread/12441 but it doesn't seem to like it. I know its an easy question but I am a newbie.
Thanks