Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: why do ceil/floor give the decimal dot?



Oliver Kiddle <okiddle@xxxxxxxxxxx> writes:

> Note that if you're using zsh's builtin printf,
> parameters corresponding to format specifiers such
> as %d are automatically evaluated in math context.
> So you can just do: printf '%d\n' 1e20
>
> It doesn't achieve much here but in some cases, this
> could avoid losing precision.

I'm using the builtin printf, not printf(1) (which
I have as /usr/bin/printf).

-- 
underground experts united
http://user.it.uu.se/~embe8573



Messages sorted by: Reverse Date, Date, Thread, Author