| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: frexp.3,v 1.1 2006/07/03 16:03:56 drochner Exp $ | | 1 | .\" $NetBSD: frexp.3,v 1.2 2010/04/29 08:35:03 joerg Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1991, 1993 | | 3 | .\" Copyright (c) 1991, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to Berkeley by | | 6 | .\" This code is derived from software contributed to Berkeley by |
7 | .\" the American National Standards Committee X3, on Information | | 7 | .\" the American National Standards Committee X3, on Information |
8 | .\" Processing Systems. | | 8 | .\" Processing Systems. |
9 | .\" | | 9 | .\" |
10 | .\" Redistribution and use in source and binary forms, with or without | | 10 | .\" Redistribution and use in source and binary forms, with or without |
11 | .\" modification, are permitted provided that the following conditions | | 11 | .\" modification, are permitted provided that the following conditions |
12 | .\" are met: | | 12 | .\" are met: |
13 | .\" 1. Redistributions of source code must retain the above copyright | | 13 | .\" 1. Redistributions of source code must retain the above copyright |
14 | .\" notice, this list of conditions and the following disclaimer. | | 14 | .\" notice, this list of conditions and the following disclaimer. |
| @@ -55,29 +55,27 @@ fraction and an integral power of 2. | | | @@ -55,29 +55,27 @@ fraction and an integral power of 2. |
55 | It stores the integer in the | | 55 | It stores the integer in the |
56 | .Em int | | 56 | .Em int |
57 | object pointed to by | | 57 | object pointed to by |
58 | .Fa exp . | | 58 | .Fa exp . |
59 | .Sh RETURN VALUES | | 59 | .Sh RETURN VALUES |
60 | The | | 60 | The |
61 | .Fn frexp | | 61 | .Fn frexp |
62 | function returns the value | | 62 | function returns the value |
63 | .Em x , | | 63 | .Em x , |
64 | such that | | 64 | such that |
65 | .Em x | | 65 | .Em x |
66 | is a | | 66 | is a |
67 | .Em double | | 67 | .Em double |
68 | with magnitude in the interval | | 68 | with magnitude in the interval [1/2, 1) or zero, and |
69 | .Bo 1/2 , 1 Pc | | | |
70 | or zero, and | | | |
71 | .Fa value | | 69 | .Fa value |
72 | equals | | 70 | equals |
73 | .Em x | | 71 | .Em x |
74 | times 2 raised to the power | | 72 | times 2 raised to the power |
75 | .Fa *exp . | | 73 | .Fa *exp . |
76 | If | | 74 | If |
77 | .Fa value | | 75 | .Fa value |
78 | is zero, both parts of the result are zero. | | 76 | is zero, both parts of the result are zero. |
79 | .Sh SEE ALSO | | 77 | .Sh SEE ALSO |
80 | .Xr ldexp 3 , | | 78 | .Xr ldexp 3 , |
81 | .Xr math 3 , | | 79 | .Xr math 3 , |
82 | .Xr modf 3 | | 80 | .Xr modf 3 |
83 | .Sh STANDARDS | | 81 | .Sh STANDARDS |