diff options
author | Dodji Seketeli <dodji@src.gnome.org> | 2003-03-15 19:02:11 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@src.gnome.org> | 2003-03-15 19:02:11 +0000 |
commit | 913912133b6a91c361d1c332175425623b86905f (patch) | |
tree | 14be087dd61e3e4450ddeaaccd3ee703c8eee6f4 /src/cr-utils.c | |
parent | 189522e07f90cc58a1f7a94836ae99bf6d7150a2 (diff) | |
download | libcroco-913912133b6a91c361d1c332175425623b86905f.tar.gz |
revisited the way the CRTerm and CRNum classes were handling their types and
especially numeric types. Did also the necessary modifs in all
the impacted code.
Diffstat (limited to 'src/cr-utils.c')
-rw-r--r-- | src/cr-utils.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cr-utils.c b/src/cr-utils.c index 8c5274f..55238ea 100644 --- a/src/cr-utils.c +++ b/src/cr-utils.c @@ -1422,3 +1422,16 @@ cr_utils_dump_n_chars (guchar a_char, FILE *a_fp, glong a_nb) fprintf (a_fp, "%c", a_char) ; } } + +gdouble +cr_utils_n_to_0_dot_n (glong a_n) +{ + gdouble result = a_n ; + + while (ABS (result) > 1) + { + result = result / 10 ; + } + + return result ; +} |