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

Re: Naive Number Question



Thank you very much. :-)

- Rob.


On Sunday, December 10, 2000, at 07:18 PM, P T Withington wrote:

> 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 ;-). 
>  
>