Skip to main content
s_bhujbal
Associate III
May 28, 2009
Question

functions for seperating fraction & integer part of a double datatype

  • May 28, 2009
  • 2 replies
  • 636 views
Posted on May 28, 2009 at 13:02

functions for seperating fraction & integer part of a double datatype

This topic has been closed for replies.

2 replies

s_bhujbal
s_bhujbalAuthor
Associate III
May 17, 2011
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
Visitor II
May 17, 2011
Posted on May 17, 2011 at 09:55

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