[Prev][Next][Index][Thread]

Re: set precision for a floating number



In article <957832498.418178@ham.ihug.co.nz>, "Joe Chiao"
<ikjoe@ihug.co.nz> wrote:

> How can I set up the precision for a floating number with the format-out? I
> want to print out a floating number with one fixed decimal number.

I don't think we have that yet.

The format library contains format-to-string, which you could use and then
do text-processing to get the string how you want it (chop or round or
whatever).

-- Bruce



References: