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

Re: Naive Number Question



Rob Myers robm@onetel.net.uk on  2000-12-10 13:15 wrote:

> Hi.
> 
> How can I round a number (a <float>) to the nearest  n  decimal places in
> (Gwydion) Dylan?

round/(number, expt(10, - n)) / expt(10, n)

[probably don't have the syntax right, but you get the idea]

Or write your self a scaled/decimal number type ;-).



References: