MCPcopy Create free account
hub / github.com/coreutils/coreutils / simple_round_to_zero

Function simple_round_to_zero

src/numfmt.c:405–409  ·  view source on GitHub ↗

EXTREMELY limited 'round away to zero'. Assumes values that fit in intmax_t. */

Source from the content-addressed store, hash-verified

403/* EXTREMELY limited 'round away to zero'.
404 Assumes values that fit in intmax_t. */
405static inline intmax_t
406simple_round_to_zero (long double val)
407{
408 return val;
409}
410
411/* EXTREMELY limited 'round' - without 'libm'.
412 Assumes values that fit in intmax_t. */

Callers 1

simple_roundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected