Question: Change Digits from within a procedure?

Hello Maple experts,

I am preparing a little package for Maple for which I would like to set the Digits variable to the maximum possible value with hardware floating point evaluation. I know that this is done with

Digits := trunc(evalhf(Digits));

However, as advertised in the help pages, a change of the Digits variable won't persist when done inside a procedure. When preparing my package I can specify some 'setup' commands that are executed when loading the package but changing the Digits setting seems to be impossible...

Does anyone know a trick how I could change the Digits when loading the package?

Please Wait...