Changeset 47f7390f in mainline


Ignore:
Timestamp:
2014-03-06T02:45:01Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba11ebb
Parents:
a11bcb1
Message:

add comment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/math/generic/trunc.c

    ra11bcb1 r47f7390f  
    2727 */
    2828
    29 /** @addtogroup libc
     29/** @addtogroup libmath
    3030 * @{
    3131 */
     
    3636#include <trunc.h>
    3737
     38/** Truncate fractional part (round towards zero)
     39 *
     40 * Truncate the fractional part of IEEE 754 double
     41 * precision floating point number by zeroing fraction
     42 * bits, effectively rounding the number towards zero
     43 * to the nearest whole number.
     44 *
     45 * If the argument is infinity or NaN, an exception
     46 * should be indicated. This is not implemented yet.
     47 *
     48 * @param val Floating point number.
     49 *
     50 * @return Number rounded towards zero.
     51 *
     52 */
    3853float64 trunc_float64(float64 val)
    3954{
Note: See TracChangeset for help on using the changeset viewer.