Mercurial > hg > octave-kai > gnulib-hg
comparison lib/human.c @ 16235:18a38c9615f0
In commentary, do not use ` to quote.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 05 Jan 2012 23:53:49 -0800 |
parents | 8250f2777afc |
children | e542fd46ad6f |
comparison
equal
deleted
inserted
replaced
16234:f9b906545e2f | 16235:18a38c9615f0 |
---|---|
70 current locale. NUMBER contains NUMBERLEN digits. Modify the | 70 current locale. NUMBER contains NUMBERLEN digits. Modify the |
71 bytes pointed to by NUMBER in place, subtracting 1 from NUMBER for | 71 bytes pointed to by NUMBER in place, subtracting 1 from NUMBER for |
72 each byte inserted. Return the starting address of the modified | 72 each byte inserted. Return the starting address of the modified |
73 number. | 73 number. |
74 | 74 |
75 To group the digits, use GROUPING and THOUSANDS_SEP as in `struct | 75 To group the digits, use GROUPING and THOUSANDS_SEP as in 'struct |
76 lconv' from <locale.h>. */ | 76 lconv' from <locale.h>. */ |
77 | 77 |
78 static char * | 78 static char * |
79 group_number (char *number, size_t numberlen, | 79 group_number (char *number, size_t numberlen, |
80 char const *grouping, char const *thousands_sep) | 80 char const *grouping, char const *thousands_sep) |
126 Use (OPTS & (human_round_to_nearest | human_floor | human_ceiling)) | 126 Use (OPTS & (human_round_to_nearest | human_floor | human_ceiling)) |
127 to determine whether to take the ceiling or floor of any result | 127 to determine whether to take the ceiling or floor of any result |
128 that cannot be expressed exactly. | 128 that cannot be expressed exactly. |
129 | 129 |
130 If (OPTS & human_group_digits), group the thousands digits | 130 If (OPTS & human_group_digits), group the thousands digits |
131 according to the locale, e.g., `1,000,000' in an American English | 131 according to the locale, e.g., "1,000,000" in an American English |
132 locale. | 132 locale. |
133 | 133 |
134 If (OPTS & human_autoscale), deduce the output block size | 134 If (OPTS & human_autoscale), deduce the output block size |
135 automatically; TO_BLOCK_SIZE must be 1 but it has no effect on the | 135 automatically; TO_BLOCK_SIZE must be 1 but it has no effect on the |
136 output. Use powers of 1024 if (OPTS & human_base_1024), and powers | 136 output. Use powers of 1024 if (OPTS & human_base_1024), and powers |