Changeset 47f7390f in mainline
- Timestamp:
- 2014-03-06T02:45:01Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ba11ebb
- Parents:
- a11bcb1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/math/generic/trunc.c
ra11bcb1 r47f7390f 27 27 */ 28 28 29 /** @addtogroup lib c29 /** @addtogroup libmath 30 30 * @{ 31 31 */ … … 36 36 #include <trunc.h> 37 37 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 */ 38 53 float64 trunc_float64(float64 val) 39 54 {
Note:
See TracChangeset
for help on using the changeset viewer.