search for: dddenn

Displaying 1 result from an estimated 1 matches for "dddenn".

Did you mean: addend
1999 Feb 28
0
Formatting in formatC and format (PR#129)
...pre-ANSI C 2nd edition of Kernighan & Ritchie, but I think the ANSI standard is that same. There is a reference to leading zeroes, none to trailing zeroes. I believe printf can be system-dependent (and some of it certainly is: win32 libraries use n.ddde+nnn and Solaris ones use n.ddde+nn not n.dddenn as your help page says). I think, pessimistically, that it is not safe to rely on how the C runtime library does this. BTW, there is a trick here: format(c(5.9, 6.0), digits=2)[-1] [1] "6.0" does what Dr Carsten wanted (but see later for the meaning of digits=2). In any case, for...