cancel
Showing results for 
Search instead for 
Did you mean: 

functions for seperating fraction & integer part of a double datatype

s_bhujbal
Associate II
Posted on May 28, 2009 at 13:02

functions for seperating fraction & integer part of a double datatype

2 REPLIES 2
s_bhujbal
Associate II
Posted on May 17, 2011 at 09:55

Dear All,

I am using STR9 with Anglia IDE & gcc compiler. For me it is necessary

to use ''double'' or ''long long'' or ''long double'' for my application.

My doubts & questions are as follows.

a) I want functions which will return Integer & Fration part of a

''float'', ''double'', ''long double''. It is also better if You have

any other idea or logic for it.

b) I want to know the format specifiers of ''long long'' , ''long double''

so that I can check values for it.

( Note that I am using GCC compiler)

Please Help

Sachin Bhujbal

:-[

bvisser
Associate
Posted on May 17, 2011 at 09:55

Have you gotten the answer? I have the same question?