Hi Lindsay,

With the functions I implemented I can write something like...

: (scl 64) (format (sqrt* 2.0) *Scl)
-> "1.4142135623730950488016887242096980785696718753769480731766797379"


'sqrt' also accepts a 'scl' argument

: (format (sqrt 2.0 1.0) *Scl)
->
"1.4142135623730950488016887242096980785696718753769480731766797380"


: (scl 64) (format (/* 1.0 9967.0) *Scl)
-> "0.0001003310926055984749673923949031804956355974716564663389184308"


: (format (*/ 1.0 1.0 9967.0) *Scl)
-> "0.0001003310926055984749673923949031804956355974716564663389184308"

With '*/', I like to think of it like this: for multiplication, the scale
factor is last, e.g.

   (*/ X Y Scl)

For division, the scale factor comes first, e.g.

   (*/ Scl X Y)

Pretty weird at first, indeed!

- Erik

Reply via email to