[haiku-bugs] [Haiku] #9962: pow returns nan instead of inf for large results

  • From: "markh" <trac@xxxxxxxxxxxx>
  • Date: Mon, 16 Sep 2013 09:21:14 -0000

#9962: pow returns nan instead of inf for large results
-----------------------+------------------------------
 Reporter:  markh      |        Owner:  nobody
     Type:  bug        |       Status:  new
 Priority:  normal     |    Milestone:  R1
Component:  - General  |      Version:  R1/Development
 Keywords:             |   Blocked By:
 Blocking:             |  Has a Patch:  0
 Platform:  All        |
-----------------------+------------------------------
 When calculating large results with pow, it returns nan instead of inf.
 This causes one check in postgresql to fail.

 For example: pow(-1004.3, 1e200) returns nan on Haiku, while inf is
 expected.

 I created a small test program that shows the behaviour and attached it to
 this ticket.

 Ingo told me that the problem is probably in glibc, but I'm not sure which
 component to select from the list.

--
Ticket URL: <http://dev.haiku-os.org/ticket/9962>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: