[haiku-bugs] Re: [Haiku] #6418: Missing modfl with patch

  • From: "MrSunshine" <trac@xxxxxxxxxxxx>
  • Date: Mon, 02 Aug 2010 21:44:44 -0000

#6418: Missing modfl with patch
--------------------------------+-------------------------------------------
  Reporter:  MrSunshine         |         Owner:  zooey         
      Type:  enhancement        |        Status:  assigned      
  Priority:  normal             |     Milestone:  R1            
 Component:  System/libroot.so  |       Version:  R1/Development
Resolution:                     |      Keywords:                
Blocked By:                     |   Has a Patch:  1             
  Platform:  All                |      Blocking:                
--------------------------------+-------------------------------------------

Comment (by MrSunshine):

 tested using


 {{{
 #include <stdio.h>
 #include <math.h>

 int main()
 {
         long double d = 6.242341512321321;

         long double intPart;
         long double doublePart = modfl(d, &intPart);

         printf("double: %.15Lf\n", d);
         printf("doublePart: %.15Lf, intPart: %.15Lf\n", doublePart,
 intPart);
 }
 }}}

 gives same result on haiku gcc2 and gcc4 as it does in linux, do not know
 how much more i can test it? :)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6418#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: